/* Store special popup — app download banner */
.reeq-store-popup {
  --rsp-bg: #f5ebd7;
  --rsp-ink: #1a1a1a;
  --rsp-muted: #5f5f5f;
  --rsp-cta: #9a6b3a;
  --rsp-cta-hover: #875c30;
  --rsp-divider: rgba(26, 26, 26, 0.16);
  --rsp-radius: 16px;
  --rsp-banner-h: 112px;
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 20px;
  /* Center the banner on the header (vertical midpoint) */
  padding-top: calc(var(--reeq-header-height, 140px) / 2);
  visibility: hidden;
  pointer-events: none;
}

.reeq-store-popup.is-open {
  visibility: visible;
  pointer-events: auto;
}

.reeq-store-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 8, 6, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.reeq-store-popup.is-open .reeq-store-popup__backdrop {
  opacity: 1;
}

.reeq-store-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin-top: calc(var(--rsp-banner-h) / -2);
  background: var(--rsp-bg);
  border-radius: var(--rsp-radius);
  box-shadow: 0 16px 40px rgba(12, 8, 6, 0.28);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.reeq-store-popup.is-open .reeq-store-popup__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reeq-store-popup__close {
  position: absolute;
  top: 50%;
  left: 12px;
  right: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #111;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.reeq-store-popup__close svg {
  display: block;
  width: 30px;
  height: 30px;
}

.reeq-store-popup__close:hover,
.reeq-store-popup__close:focus {
  color: #000;
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.reeq-store-popup__close:focus-visible {
  outline: 2px solid var(--rsp-cta);
  outline-offset: 2px;
}

.reeq-store-popup__banner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--rsp-banner-h);
  padding: 18px 28px 18px 80px;
  direction: rtl;
}

body.ltr .reeq-store-popup__banner {
  direction: ltr;
  padding: 18px 52px 18px 28px;
}

body.ltr .reeq-store-popup__close {
  left: auto;
  right: 12px;
}

.reeq-store-popup__brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline-end: 4px;
}

.reeq-store-popup__logo {
  display: block;
  width: auto;
  max-width: 156px;
  height: 54px;
  object-fit: contain;
  object-position: center;
}

.reeq-store-popup__divider {
  flex-shrink: 0;
  width: 1px;
  height: 52px;
  background: var(--rsp-divider);
}

.reeq-store-popup__copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
  padding-inline-end: 8px;
}

.reeq-store-popup__title {
  margin: 0 0 8px;
  color: var(--rsp-ink);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
}

.reeq-store-popup__subtitle {
  margin: 0;
  color: #666666;
  font-size: 15px;
  font-weight: 500;
  line-height: 150%;
  max-width: 100%;
}

.reeq-store-popup__actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin-inline-end: 4px;
}

.reeq-store-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 8px;
  background:#B17122;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.reeq-store-popup__cta:hover,
.reeq-store-popup__cta:focus {
  background: var(--rsp-cta-hover);
  color: #fff;
  text-decoration: none;
  outline: none;
  transform: translateY(-1px);
}

.reeq-store-popup__cta:focus-visible {
  outline: 2px solid var(--rsp-ink);
  outline-offset: 2px;
}

.reeq-store-popup__stores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  direction: rtl;
}

body.ltr .reeq-store-popup__stores {
  direction: ltr;
}

.reeq-store-popup__stores-label {
  color: #666666;
  font-size: 15px;
  font-weight: 500;
  line-height: 150%;
  white-space: nowrap;
}

.reeq-store-popup__store-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reeq-store-popup__store-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  line-height: 0;
  border-radius: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.reeq-store-popup__store-icon:hover,
.reeq-store-popup__store-icon:focus {
  transform: translateY(-1px);
  opacity: 0.92;
  outline: none;
}

.reeq-store-popup__store-icon:focus-visible {
  outline: 2px solid var(--rsp-cta);
  outline-offset: 2px;
}

.reeq-store-popup__store-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

body.reeq-store-popup-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .reeq-store-popup__banner {
    gap: 20px;
    padding: 16px 22px 16px 48px;
  }

  body.ltr .reeq-store-popup__banner {
    padding: 16px 48px 16px 22px;
  }

  .reeq-store-popup__logo {
    max-width: 130px;
    height: 46px;
  }

  .reeq-store-popup__subtitle {
    max-width: none;
    font-size: 0.84rem;
  }

  .reeq-store-popup__actions {
    min-width: 158px;
    gap: 12px;
  }
}

@media (max-width: 860px) {
  .reeq-store-popup {
    --rsp-banner-h: auto;
    align-items: flex-start;
    padding: 12px;
    padding-top: max(12px, calc(var(--reeq-header-height, 72px) / 2 - 8px));
  }

  .reeq-store-popup__dialog {
    width: 100%;
    margin-top: 0;
    border-radius: 16px;
  }

  .reeq-store-popup__close {
    top: 14px;
    left: 12px;
    transform: none;
  }

  body.ltr .reeq-store-popup__close {
    left: auto;
    right: 12px;
  }

  .reeq-store-popup__banner {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-height: 0;
    padding: 44px 22px 24px;
    text-align: center;
  }

  body.ltr .reeq-store-popup__banner {
    padding: 44px 22px 24px;
  }

  .reeq-store-popup__divider {
    width: 56px;
    height: 1px;
  }

  .reeq-store-popup__brand {
    padding-inline-end: 0;
  }

  .reeq-store-popup__copy {
    text-align: center;
    padding-inline-end: 0;
  }

  .reeq-store-popup__subtitle {
    margin-inline: auto;
  }

  .reeq-store-popup__logo {
    max-width: 140px;
    height: 50px;
  }

  .reeq-store-popup__actions {
    width: 100%;
    max-width: 230px;
    margin-inline-end: 0;
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .reeq-store-popup__title {
    font-size: 1.15rem;
  }

  .reeq-store-popup__subtitle {
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reeq-store-popup__backdrop,
  .reeq-store-popup__dialog,
  .reeq-store-popup__cta,
  .reeq-store-popup__store-icon {
    transition: none;
  }
}
