/* ==========================================================================
   EliteTools — additions on top of style.css
   1. Language / currency switchers in the announcement bar
   2. Logo mark as an image
   3. Placeholder social cards (before the accounts exist)
   4. RTL overrides for Arabic
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Announcement-bar tools (lang, currency, theme)
   -------------------------------------------------------------------------- */
.announce {
  /* Leave room for the tools cluster on both sides so the rotating
     message stays optically centred. */
  padding-inline: 16px 172px;
}

.announce__tools {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

/* The toggle now lives inside the tools cluster rather than floating. */
.announce__tools .theme-toggle {
  position: static;
  transform: none;
}

.switcher {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.08);
  border: 1px solid rgba(10, 10, 10, 0.12);
}

.switcher__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--announce-text);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.62;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.switcher__btn:hover {
  opacity: 0.9;
}

.switcher__btn.is-active {
  background: var(--ink, #0a0a0a);
  color: var(--yellow, #facc15);
  opacity: 1;
}

.switcher__btn:focus-visible {
  outline: 2px solid var(--ink, #0a0a0a);
  outline-offset: 2px;
}

[data-theme="dark"] .switcher {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .switcher__btn.is-active {
  background: var(--yellow, #facc15);
  color: #0a0a0a;
}

[data-theme="dark"] .switcher__btn:focus-visible {
  outline-color: var(--yellow, #facc15);
}

@media (max-width: 900px) {
  .announce {
    padding-inline: 10px 150px;
  }
  .announce__tools {
    gap: 6px;
  }
  .switcher__btn {
    padding: 5px 7px;
    font-size: 0.64rem;
  }
}

@media (max-width: 560px) {
  /* Stack the bar so the message never collides with the controls. */
  .announce {
    height: auto;
    min-height: var(--announce-h);
    flex-wrap: wrap;
    justify-content: center;
    padding: 6px 10px;
    row-gap: 4px;
  }
  .announce__fold {
    order: 2;
    flex-basis: 100%;
    height: 24px;
  }
  .announce__tools {
    order: 1;
    position: static;
    transform: none;
    justify-content: center;
    flex-basis: 100%;
  }
  .announce__text {
    font-size: 0.76rem;
  }
}

/* Currency dropdown — nine markets don't fit as buttons. */
.cur-select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--announce-text);
  background: rgba(10, 10, 10, 0.08);
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 999px;
  padding: 6px 22px 6px 10px;
  cursor: pointer;
  /* Chevron drawn inline so no extra request and it follows the text colour. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 9px;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.cur-select:hover {
  background-color: rgba(10, 10, 10, 0.14);
}

.cur-select:focus-visible {
  outline: 2px solid var(--ink, #0a0a0a);
  outline-offset: 2px;
}

.cur-select option {
  color: #0a0a0a;
  background: #ffffff;
}

[dir="rtl"] .cur-select {
  padding: 6px 10px 6px 22px;
  background-position: left 8px center;
}

[data-theme="dark"] .cur-select {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

[data-theme="dark"] .cur-select:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .cur-select option {
  color: #e8ecf4;
  background: #14161d;
}

[data-theme="dark"] .cur-select:focus-visible {
  outline-color: var(--yellow, #facc15);
}

/* --------------------------------------------------------------------------
   2. Logo mark (SVG gem instead of an emoji)
   -------------------------------------------------------------------------- */
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo__mark img {
  display: block;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 6px rgba(180, 83, 9, 0.28));
}

.logo--sm .logo__mark img {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   3. Social cards with no account wired up yet
   -------------------------------------------------------------------------- */
.social-card.is-placeholder,
.footer__social-btn.is-placeholder,
.btn.is-placeholder {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Reach section — KPI tiles, satisfaction meter, markets grid
   -------------------------------------------------------------------------- */
.reach {
  position: relative;
  overflow: hidden;
}

/* Soft gold wash so the section reads as its own surface without a hard edge.
   Deliberately no filter: blur() — the gradients are already soft, and blurring a
   region this large on top of the page's existing glass layers froze the renderer. */
.reach__aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(46% 60% at 22% 40%, rgba(250, 204, 21, 0.18), transparent 70%),
    radial-gradient(38% 55% at 78% 30%, rgba(23, 139, 255, 0.1), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.reach > .container {
  position: relative;
  z-index: 1;
}

.reach__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

/* --- KPI tiles --- */
.reach-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px;
  border-radius: var(--radius, 18px);
  border: 1px solid var(--line, rgba(15, 23, 42, 0.08));
  background: var(--surface, rgba(255, 255, 255, 0.72));
  overflow: hidden;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease;
}

/* Gold hairline along the top edge — the section's one decorative accent. */
.reach-stat::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow, #facc15), transparent);
  opacity: 0.7;
}

.reach-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(250, 204, 21, 0.45);
}

.reach-stat__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 11px;
  background: var(--yellow-soft, rgba(250, 204, 21, 0.14));
  color: var(--yellow-deep, #ca8a04);
}

.reach-stat__icon svg {
  width: 20px;
  height: 20px;
}

/* Proportional figures: a large standalone number looks loose with tabular-nums. */
.reach-stat__value {
  font-family: var(--display, "Space Grotesk", sans-serif);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink, #111827);
}

.reach-stat__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink, #111827);
}

.reach-stat__note {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted, #64748b);
}

/* --- Satisfaction meter --- */
.reach-meter {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  border-radius: var(--radius, 18px);
  border: 1px solid var(--line, rgba(15, 23, 42, 0.08));
  background: var(--surface, rgba(255, 255, 255, 0.72));
}

.reach-meter__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.reach-meter__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink, #111827);
}

.reach-meter__value {
  font-family: var(--display, "Space Grotesk", sans-serif);
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink, #111827);
}

/* Track is a lighter step of the fill's own ramp, so state reads across the bar. */
.reach-meter__track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--yellow-soft, rgba(250, 204, 21, 0.14));
  overflow: hidden;
}

.reach-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow, #facc15), var(--yellow-deep, #ca8a04));
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Target marker at 95% — a reference line, not a second data series. */
.reach-meter__target {
  position: absolute;
  top: -2px;
  bottom: -2px;
  inset-inline-start: 95%;
  width: 2px;
  border-radius: 2px;
  background: var(--ink, #111827);
  opacity: 0.35;
}

.reach-meter__foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.reach-meter__note {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted, #64748b);
  max-width: 62ch;
}

.reach-meter__target-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted, #64748b);
  white-space: nowrap;
}

/* --- Markets --- */
.reach-markets {
  padding: 22px 20px;
  border-radius: var(--radius, 18px);
  border: 1px solid var(--line, rgba(15, 23, 42, 0.08));
  background: var(--surface, rgba(255, 255, 255, 0.72));
}

.reach-markets__head {
  margin-bottom: 16px;
}

.reach-markets__head h3 {
  margin: 0 0 4px;
  font-family: var(--display, "Space Grotesk", sans-serif);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink, #111827);
}

.reach-markets__head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted, #64748b);
}

.reach-markets__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.market {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  text-align: start;
  font: inherit;
  border-radius: var(--radius-sm, 12px);
  border: 1px solid var(--line, rgba(15, 23, 42, 0.08));
  background: var(--surface-solid, #fff);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.market:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.5);
}

.market:focus-visible {
  outline: 2px solid var(--yellow-deep, #ca8a04);
  outline-offset: 2px;
}

/* Selected market is marked by border + check + text, never colour alone. */
.market.is-active {
  border-color: var(--yellow-deep, #ca8a04);
  background: var(--yellow-soft, rgba(250, 204, 21, 0.14));
}

.market__flag {
  flex: 0 0 30px;
  width: 30px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.market__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shown only when the flag image fails to load. */
.market__code {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted, #64748b);
}

[data-theme="dark"] .market__flag {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.market__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.market__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink, #111827);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market__cur {
  font-size: 0.74rem;
  color: var(--muted, #64748b);
  direction: ltr;
  unicode-bidi: isolate;
}

.market__check {
  margin-inline-start: auto;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--yellow-deep, #ca8a04);
}

.market:not(.is-active) .market__check {
  visibility: hidden;
}

.reach-markets__note {
  margin: 14px 0 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--muted, #64748b);
}

[data-theme="dark"] .reach-stat,
[data-theme="dark"] .reach-meter,
[data-theme="dark"] .reach-markets {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

[data-theme="dark"] .market {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .market.is-active {
  border-color: var(--yellow, #facc15);
  background: rgba(250, 204, 21, 0.16);
}

[data-theme="dark"] .reach-meter__target {
  background: #ffffff;
  opacity: 0.4;
}

@media (max-width: 900px) {
  .reach__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reach-stat:nth-child(3) {
    grid-column: 1 / -1;
  }
  .reach-markets__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .reach__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .reach-stat:nth-child(3) {
    grid-column: auto;
  }
  .reach-markets__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .reach-meter__foot {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reach-stat,
  .market,
  .reach-meter__fill {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   5. Arabic / RTL
   -------------------------------------------------------------------------- */
[dir="rtl"] body,
[dir="rtl"] .logo__text,
[dir="rtl"] .hero__title,
[dir="rtl"] .section__title {
  font-family: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, sans-serif;
}

/* Brand wordmark stays latin and left-to-right even in Arabic. */
[dir="rtl"] .logo__text {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Directional glyphs baked into copy need mirroring, not translation. */
[dir="rtl"] .step__arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .icon-btn#igPrev,
[dir="rtl"] .icon-btn#igNext {
  transform: scaleX(-1);
}

/* The marquee scrolls with a transform, so keep it LTR to preserve the loop. */
[dir="rtl"] .marquee__track {
  direction: ltr;
}

[dir="rtl"] .marquee__group span {
  direction: rtl;
}

/* Cart drawer slides in from the correct edge. */
[dir="rtl"] .cart-drawer__panel {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

/* A clock reads HH:MM:SS in every locale — keep the blocks in that order. */
[dir="rtl"] .countdown {
  direction: ltr;
}

/* The meter fills from the inline-start edge, so its gradient flips too. */
[dir="rtl"] .reach-meter__fill {
  background: linear-gradient(270deg, var(--yellow, #facc15), var(--yellow-deep, #ca8a04));
}

[dir="rtl"] .reach-stat__value,
[dir="rtl"] .reach-meter__value {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Numbers and prices read left-to-right inside Arabic sentences. */
[dir="rtl"] .product-card__price,
[dir="rtl"] .modal__price,
[dir="rtl"] .cart-item__price,
[dir="rtl"] .countdown__digits,
[dir="rtl"] .stat strong,
[dir="rtl"] #cartSubtotal,
[dir="rtl"] #cartProgressMeta,
[dir="rtl"] .float-card em {
  direction: ltr;
  unicode-bidi: isolate;
}

[dir="rtl"] .product-card__price,
[dir="rtl"] .cart-item__price {
  text-align: end;
}

/* Left/right paddings that were hard-coded in the base sheet. */
[dir="rtl"] .price-disclaimer,
[dir="rtl"] .seo-hub,
[dir="rtl"] .footer__col-list {
  text-align: start;
}

[dir="rtl"] .float-wa {
  inset-inline-start: auto;
}

/* --------------------------------------------------------------------------
   7. Checkout — card payment (Ziina) and the order status page
   -------------------------------------------------------------------------- */

/* "or" divider between the two payment options */
.cart-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.42);
}

.cart-or::before,
.cart-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(10, 10, 10, 0.12);
}

/* The divider only earns its place when both options are showing. */
.cart-drawer:not(.has-card-pay) .cart-or {
  display: none;
}

.cart-trust {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(10, 10, 10, 0.5);
}

.cart-trust svg {
  flex: none;
  margin-top: 2px;
  opacity: 0.75;
}

[data-theme="dark"] .cart-or {
  color: rgba(255, 255, 255, 0.42);
}

[data-theme="dark"] .cart-or::before,
[data-theme="dark"] .cart-or::after {
  background: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .cart-trust {
  color: rgba(255, 255, 255, 0.5);
}

/* ----- Checkout pane: slides over the cart contents ----- */

.checkout-pane {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  background: var(--card, #ffffff);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.checkout-pane.is-open {
  transform: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .checkout-pane {
    transition: none;
  }
}

.checkout-pane__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.checkout-pane__head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.checkout-pane__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.05);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}

.checkout-pane__back:hover {
  background: rgba(10, 10, 10, 0.1);
}

[dir="rtl"] .checkout-pane__back span[aria-hidden] {
  display: inline-block;
  transform: scaleX(-1);
}

.checkout-pane__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 24px;
  -webkit-overflow-scrolling: touch;
}

.checkout-intro {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.62);
}

.checkout-test {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(202, 138, 4, 0.3);
  font-size: 12.5px;
  font-weight: 600;
  color: #854d0e;
}

/* ----- Form fields ----- */

.field {
  display: block;
  margin-bottom: 14px;
}

.field__label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 600;
}

.field__optional {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.5;
}

.field input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid rgba(10, 10, 10, 0.14);
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.02);
  font: inherit;
  font-size: 14px;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input::placeholder {
  color: rgba(10, 10, 10, 0.32);
}

.field input:focus {
  outline: none;
  border-color: var(--ink, #0a0a0a);
  background: transparent;
}

.field input:user-invalid {
  border-color: #dc2626;
}

.field__help {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(10, 10, 10, 0.48);
}

/* Phone and email read left-to-right even in an Arabic layout. */
[dir="rtl"] #coPhone,
[dir="rtl"] #coEmail {
  direction: ltr;
  text-align: right;
}

/* ----- Total block ----- */

.checkout-total {
  margin: 18px 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.04);
  border: 1px solid rgba(10, 10, 10, 0.07);
}

.checkout-total__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.checkout-total__row strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.checkout-total__fx,
.checkout-total__gift {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(10, 10, 10, 0.52);
}

.checkout-total__gift {
  font-weight: 600;
  color: #15803d;
}

.checkout-error {
  margin: 0 0 12px;
  padding: 10px 13px;
  border-radius: 9px;
  background: rgba(220, 38, 38, 0.09);
  border: 1px solid rgba(220, 38, 38, 0.28);
  font-size: 12.5px;
  line-height: 1.45;
  color: #b91c1c;
}

#coSubmit.is-busy {
  opacity: 0.72;
  cursor: progress;
}

/* ----- Trust block ----- */

.checkout-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.checkout-trust li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 9px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.55);
}

.checkout-trust svg {
  flex: none;
  margin-top: 1px;
  opacity: 0.6;
}

.checkout-legal {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.44);
}

.checkout-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----- Checkout pane, dark ----- */

[data-theme="dark"] .checkout-pane {
  background: var(--card, #14161d);
}

[data-theme="dark"] .checkout-pane__head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .checkout-pane__back {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .checkout-pane__back:hover {
  background: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .checkout-intro,
[data-theme="dark"] .field__help,
[data-theme="dark"] .checkout-total__fx,
[data-theme="dark"] .checkout-trust li {
  color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .checkout-legal {
  color: rgba(255, 255, 255, 0.44);
}

[data-theme="dark"] .checkout-test {
  background: rgba(250, 204, 21, 0.14);
  border-color: rgba(250, 204, 21, 0.32);
  color: #fde68a;
}

[data-theme="dark"] .field input {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .field input:focus {
  border-color: var(--yellow, #facc15);
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .checkout-total {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .checkout-total__gift {
  color: #4ade80;
}

[data-theme="dark"] .checkout-error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

[data-theme="dark"] .checkout-trust {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* ----- Order status page ----- */

.order-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.order-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 34px 30px 30px;
  border-radius: 20px;
  background: var(--card, #ffffff);
  border: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow: 0 18px 50px rgba(10, 10, 10, 0.09);
  text-align: center;
}

.order-card h1 {
  margin: 18px 0 8px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.order-card > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.6);
}

.order-card__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.05);
}

.order-icon__glyph {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

[data-state="paid"] .order-card__icon {
  background: rgba(22, 163, 74, 0.13);
  color: #15803d;
}

[data-state="failed"] .order-card__icon,
[data-state="missing"] .order-card__icon {
  background: rgba(220, 38, 38, 0.11);
  color: #b91c1c;
}

[data-state="canceled"] .order-card__icon {
  background: rgba(10, 10, 10, 0.06);
  color: rgba(10, 10, 10, 0.5);
}

.order-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(10, 10, 10, 0.14);
  border-top-color: rgba(10, 10, 10, 0.55);
  border-radius: 50%;
  animation: order-spin 0.8s linear infinite;
}

@keyframes order-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-spinner {
    animation-duration: 2.4s;
  }
}

.order-ref {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 9px 15px;
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.05);
  font-size: 12.5px;
}

.order-ref strong {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.05em;
  direction: ltr;
  unicode-bidi: isolate;
}

.order-test {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #854d0e;
}

.order-summary {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(10, 10, 10, 0.09);
  text-align: start;
}

.order-summary h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.45);
}

.order-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-summary li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  font-size: 13.5px;
}

.order-summary li small {
  display: block;
  font-size: 11.5px;
  opacity: 0.58;
}

.order-summary li.is-gift strong {
  color: #15803d;
}

.order-summary__total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(10, 10, 10, 0.09);
  font-size: 14px;
  font-weight: 700;
}

.order-actions {
  margin-top: 24px;
  display: grid;
  gap: 9px;
}

[data-theme="dark"] .order-card {
  background: var(--card, #14161d);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .order-card > p {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .order-card__icon,
[data-theme="dark"] .order-ref {
  background: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] [data-state="paid"] .order-card__icon {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

[data-theme="dark"] [data-state="failed"] .order-card__icon,
[data-theme="dark"] [data-state="missing"] .order-card__icon {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

[data-theme="dark"] [data-state="canceled"] .order-card__icon {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .order-spinner {
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .order-summary,
[data-theme="dark"] .order-summary__total {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .order-summary h2 {
  color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .order-summary li.is-gift strong {
  color: #4ade80;
}

[data-theme="dark"] .order-test {
  color: #fde68a;
}

/* --------------------------------------------------------------------------
   8. [hidden] fixes + accepted-payment badges
   -------------------------------------------------------------------------- */

/*
 * The UA rule `[hidden] { display: none }` loses to any author rule that sets
 * display — `.btn` is inline-flex, `.checkout-pane` is flex — so these elements
 * stayed on screen while marked hidden. A transparent .checkout-pane covering
 * the drawer swallowed every click in the cart, including "Pay by card".
 * There is no global [hidden] reset here on purpose: .sale-pop deliberately
 * overrides [hidden] while animating.
 */
.checkout-pane[hidden],
.checkout-total__fx[hidden],
.checkout-total__gift[hidden],
.checkout-test[hidden],
.checkout-error[hidden],
.order-ref[hidden],
.order-summary[hidden],
.order-test[hidden],
#payCardBtn[hidden],
#orderWhatsapp[hidden] {
  display: none;
}

/* Belt and braces: a pane that is mid-fade must not intercept clicks either. */
.checkout-pane:not(.is-open) {
  pointer-events: none;
}

.checkout-pane.is-open {
  pointer-events: auto;
}

/* ----- Accepted payment badges ----- */

.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pay-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 29px;
  padding: 3px 5px;
  border-radius: 6px;
  /* Card marks are specified for a light background — keep it in both themes. */
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.12);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06);
  color: #000000;
}

.pay-badge svg {
  display: block;
  width: 100%;
  height: 100%;
  /*
   * Brand marks are always left-to-right. Without this an RTL page anchors
   * SVG <text> from its right edge, so "Pay" runs back over the Apple and
   * Google glyphs and clips off the left of the viewBox.
   */
  direction: ltr;
}

[data-theme="dark"] .pay-badge {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

/* In the footer */
.footer__pay {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.footer__pay-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.62;
}

/* In the checkout pane */
.checkout-methods {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 0;
}

.checkout-methods__label {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.55);
}

[data-theme="dark"] .checkout-methods__label {
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   9. Full-page checkout (checkout.html)
   -------------------------------------------------------------------------- */

.checkout-body {
  background: var(--bg, #fafafa);
  min-height: 100vh;
  min-height: 100dvh;
}

.co-head {
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  background: var(--card, #ffffff);
}

.co-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.co-head__logo {
  text-decoration: none;
  color: inherit;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.co-head__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
}

.co-head__back:hover {
  opacity: 1;
}

[dir="rtl"] .co-head__back span[aria-hidden] {
  display: inline-block;
  transform: scaleX(-1);
}

.co-main {
  padding: 32px 0 64px;
}

.co-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .co-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  /* Summary first on mobile: people want to see what they are paying for. */
  .co-col--summary {
    order: -1;
  }
}

.co-title {
  margin: 0 0 24px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.co-step {
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 16px;
  background: var(--card, #ffffff);
  border: 1px solid rgba(10, 10, 10, 0.08);
}

.co-step__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.co-step__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink, #0a0a0a);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.co-payer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.04);
  font-size: 13px;
}

.co-payer__edit {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ----- Embedded Ziina frame ----- */

.co-frame {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  min-height: 820px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.02);
}

.co-frame iframe {
  display: block;
  width: 100%;
  height: 820px;
  border: 0;
}

.co-frame__loading,
.co-redirecting {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: var(--card, #ffffff);
  font-size: 13px;
  opacity: 0.75;
}

.co-redirecting {
  position: static;
  padding: 40px 0;
}

.co-frame__loading[hidden],
.co-redirecting[hidden],
.co-frame[hidden],
.co-payer[hidden],
.co-summary__fx[hidden],
.co-summary__row--gift[hidden],
.co-summary__empty[hidden],
.co-frame__fallback[hidden],
.cart-progress[hidden],
.co-step[hidden] {
  display: none;
}

.co-frame__fallback {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.65;
}

.co-frame__fallback a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----- Order summary ----- */

.co-summary {
  position: sticky;
  top: 24px;
  padding: 24px;
  border-radius: 16px;
  background: var(--card, #ffffff);
  border: 1px solid rgba(10, 10, 10, 0.08);
}

@media (max-width: 900px) {
  .co-summary {
    position: static;
  }
}

.co-summary__title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.5;
}

.co-summary__empty {
  text-align: center;
  font-size: 14px;
}

.co-summary__empty p {
  margin: 0 0 14px;
  opacity: 0.65;
}

.co-lines {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.co-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}

.co-line__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  overflow: hidden;
}

.co-line__mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.co-line__text {
  flex: 1;
  min-width: 0;
}

.co-line__text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.co-line__text small {
  display: block;
  font-size: 11.5px;
  opacity: 0.55;
}

.co-line__price {
  text-align: end;
  font-size: 13.5px;
  font-weight: 700;
}

.co-line__remove {
  display: block;
  margin-top: 3px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  color: #b91c1c;
  cursor: pointer;
  opacity: 0.8;
}

.co-line__remove:hover {
  opacity: 1;
}

.co-summary__rows {
  padding-top: 4px;
}

.co-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13.5px;
}

.co-summary__row--gift strong {
  color: #15803d;
}

.co-summary__row--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  font-size: 15px;
  font-weight: 700;
}

.co-summary__row--total strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.co-summary__fx {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  opacity: 0.55;
}

/* The checkout page reuses the drawer's progress bar; give it room to breathe. */
.co-summary .cart-progress {
  margin: 0 0 18px;
}

/* ----- Dark ----- */

[data-theme="dark"] .co-head,
[data-theme="dark"] .co-step,
[data-theme="dark"] .co-summary,
[data-theme="dark"] .co-frame__loading,
[data-theme="dark"] .co-redirecting {
  background: var(--card, #14161d);
}

[data-theme="dark"] .co-head,
[data-theme="dark"] .co-step,
[data-theme="dark"] .co-summary {
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .co-step__num {
  background: var(--yellow, #facc15);
  color: #0a0a0a;
}

[data-theme="dark"] .co-payer {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .co-line {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .co-summary__row--total {
  border-top-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .co-summary__row--gift strong {
  color: #4ade80;
}

[data-theme="dark"] .co-line__remove {
  color: #fca5a5;
}

/* --------------------------------------------------------------------------
   10. Disabled buttons
   -------------------------------------------------------------------------- */

/*
 * The base sheet styles no disabled state, so a blocked button looked fully
 * clickable and simply swallowed the click — worse than no button at all.
 * `#coSubmit.is-busy` carries an id and still wins over this during submit.
 */
.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.35);
}

.btn:disabled:hover,
.btn[disabled]:hover {
  transform: none;
}
