/* Heaven Health · website checkout, Heaven 3D depth layer v1 (30 Nov 2026).
   Sits on top of pay/shop-checkout.css (which shop-checkout.js adds itself, AFTER this file),
   so every selector here carries `html body` to win by specificity, not by order.
   The /pro language: one light high on the top-left; page < frosted slab < lit bodies;
   controls press IN. Styling only: no ids, classes, scripts, prices or words change.
   PayPal's buttons are third-party iframes: they get a clean tray, nothing inside is touched.
   Every text pair keeps its ink (all ≥ 4.5:1, noted beside each change). Reduced motion respected.
   /heaven-halo's `#cfg .sum .hhs-box` (no card inside its own card) still wins: it carries an id. */
:root {
  --hhd-dusk: 46,78,126;
  --hhd-gold-rim: rgba(233,196,106,.62);
  --hhd-sheen: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0)) top / 100% 21px no-repeat;
  --hhd-slab-edge: inset 0 1.3px 0 #FFFFFF, inset 0 -1px 0 rgba(var(--hhd-dusk),.08);
  --hhd-cast: 0 1px 2px rgba(var(--hhd-dusk),.10), 0 6px 14px -4px rgba(var(--hhd-dusk),.12), 0 20px 42px -12px rgba(var(--hhd-dusk),.17);
  --hhd-cast-gold: 0 8px 22px -8px rgba(233,196,106,.40);
  --hhd-lit-edge: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1.5px 0 rgba(var(--hhd-dusk),.07);
  --hhd-lit-shadow: 0 1px 1.5px rgba(var(--hhd-dusk),.14), 0 4px 10px -3px rgba(var(--hhd-dusk),.16);
  --hhd-press: inset 0 2px 4px rgba(var(--hhd-dusk),.18), 0 1px 0 #FFFFFF;
  --hhd-sunk: inset 0 2px 5px -1px rgba(var(--hhd-dusk),.16), inset 0 0 0 1px rgba(var(--hhd-dusk),.06), 0 1px 0 #FFFFFF;
  --hhd-focus: #876020;   /* 5.6:1 on white */
}

/* ── The box: a frosted slab with a gold rim and a sheen along its top ── */
html body .hhs-box {
  border-radius: 21px;
  background: var(--hhd-sheen), linear-gradient(180deg, #FFFFFF 0%, #FCF8EE 100%);   /* inks below hold on #FCF8EE */
  border: 1px solid var(--hhd-gold-rim);
  box-shadow: var(--hhd-slab-edge), var(--hhd-cast), var(--hhd-cast-gold);
}
/* what you're buying: a small lit label line above the price */
html body .hhs-sum { color: #1a283d; letter-spacing: .005em; }                 /* 14.6:1 */
html body .hhs-price { color: #1a283d; text-shadow: 0 1px 0 #FFFFFF; }
html body .hhs-fx { color: #4a566c; }                                           /* 7.0:1 on #FCF8EE */
html body .hhs-fx-note { color: #4a566c; }

/* currency switch: a sunk track; the chosen currency is a lit navy body. 44 px targets. */
html body .hhs-cur { background: linear-gradient(180deg, #EEE9DE, #F6F2EA); border-color: rgba(130,93,32,.20); box-shadow: var(--hhd-sunk); }
html body .hhs-cur button { min-height: 44px; min-width: 44px; padding: 0 16px; font-size: 14px; color: #3f4a5e; }   /* 8.0:1 */
html body .hhs-cur button[aria-pressed="true"] {
  background: linear-gradient(180deg, #2C3D58, #1A283D); color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(var(--hhd-dusk),.30), 0 4px 10px -3px rgba(var(--hhd-dusk),.35);
}
html body .hhs-cur button:active { box-shadow: var(--hhd-press); }
html body .hhs-cur button[aria-pressed="true"]:active { box-shadow: inset 0 2px 5px rgba(0,0,0,.35); }

/* "Not available for delivery to …": a sunk gold notice, read before the buttons */
html body .hhs-ship {
  background: linear-gradient(180deg, #F8EDD3, #FBF3E2);
  border-color: rgba(130,93,32,.34);
  box-shadow: inset 0 1.5px 3px rgba(107,78,20,.14), 0 1px 0 #FFFFFF;
  color: #5a4110;                                                                 /* 8.5:1 on #F8EDD3 */
}

/* Terms of Sale: an inline link, so its tap area grows with padding only (no layout move) */
html body .hhs-legal a { padding: 13px 0; margin: -13px 0; }
html body .hhs-legal a:hover { color: #4f380e; }

/* PayPal's buttons: a clean sunk tray round the third-party iframe, never inside it */
html body .hhs-buttons {
  margin-top: 16px; padding: 10px; border-radius: 18px;
  background: linear-gradient(180deg, #F4F1EA, #FBFAF6);
  box-shadow: var(--hhd-sunk);
}
html body .hhs-buttons[hidden] { display: none; }
/* empty only after a failed load (the loading line fills it otherwise): no blank gap above the error */
html body .hhs-buttons:empty { min-height: 0; margin-top: 0; padding: 0; box-shadow: none; background: none; }
html body .hhs-buttons > div, html body .hhs-buttons iframe { border-radius: 12px; }
html body .hhs-loading {
  border: 0; background: linear-gradient(180deg, #FFFFFF, #F7F2E6);
  box-shadow: var(--hhd-lit-edge), var(--hhd-lit-shadow);
  color: #4a566c;                                                                 /* 7.3:1 */
}

/* messages: status stays quiet; an error is a clear card (the element is already role=alert) */
html body .hhs-status { color: #1a283d; }
html body .hhs-err:not(:empty) {
  margin-top: 13px; padding: 12px 14px; border-radius: 13px;
  background: #FFF4F2; border: 1px solid rgba(155,44,44,.35);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 10px -6px rgba(155,44,44,.30);
  color: #8a2525;                                                                 /* 7.4:1 on #FFF4F2 */
}
/* Try again: a lit pill that presses in */
html body .hhs-retry {
  min-height: 48px; padding: 0 24px; margin-top: 13px;
  background: linear-gradient(180deg, #FFFFFF, #F4F1EA); border: 1px solid rgba(26,40,61,.30);
  box-shadow: var(--hhd-lit-edge), var(--hhd-lit-shadow);
  transition: background-color .3s ease, box-shadow .2s ease;
}
html body .hhs-retry:hover { background: linear-gradient(180deg, #FFFFFF, #FFF6DE); border-color: #876020; }
html body .hhs-retry:active { box-shadow: var(--hhd-press); transform: translateY(1px); }
html body .hhs-retry[hidden] { display: none; }

/* thank-you: a lit green-tinged slab; it receives focus from the script, so show where it is */
html body .hhs-done {
  margin-top: 16px; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0)) top / 100% 18px no-repeat, linear-gradient(180deg, #F6FBF6, #EAF5EA);
  border: 1px solid #A9D3A9;
  box-shadow: inset 0 1.3px 0 #FFFFFF, 0 1px 2px rgba(40,90,40,.10), 0 10px 24px -12px rgba(40,90,40,.30);
  color: #1a283d;                                                                 /* 13.5:1 */
}
html body .hhs-done[hidden] { display: none; }
html body .hhs-done:focus { outline: none; }
html body .hhs-done:focus-visible { outline: 3px solid var(--hhd-focus); outline-offset: 3px; }
html body .hhs-done .hhs-done-t { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 19px; }

/* keyboard focus: one gold ring everywhere in the box */
html body .hhs-box :focus-visible { outline: 3px solid var(--hhd-focus); outline-offset: 3px; }

/* phones: a little more air, small print that reads, nothing wider than the screen */
@media (max-width: 430px) {
  html body .hhs-box { padding: 16px; border-radius: 18px; }
  html body .hhs-fx-note { font-size: 13px; line-height: 1.5; }
  html body .hhs-legal { font-size: 14px; }
  html body .hhs-buttons { padding: 8px; border-radius: 16px; }
  html body .hhs-retry { width: 100%; }
}
@media (max-width: 340px) {
  html body .hhs-box { padding: 13px; }
  html body .hhs-price { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html body .hhs-retry { transition: none; }
  html body .hhs-retry:active { transform: none; }
}
/* Windows high contrast: drop the painted depth, keep real borders */
@media (forced-colors: active) {
  html body .hhs-box, html body .hhs-buttons, html body .hhs-done, html body .hhs-err:not(:empty), html body .hhs-retry { box-shadow: none; border: 1px solid CanvasText; }
  html body .hhs-cur button[aria-pressed="true"] { background: Highlight; color: HighlightText; }
}
