/* AgentX #393: small UX fixes from the mobile audit (order summary styling, tap targets, wraps). */
.os-box { border: 1px solid #d9d9d9; border-radius: 8px; padding: 12px 14px; margin: 14px 0; background: #fff; text-align: left; font-size: 16px; line-height: 1.35; color: #222; }
.os-title { font-weight: 700; margin-bottom: 6px; }
.os-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.os-row .os-price { white-space: nowrap; font-weight: 600; }
.os-row.os-total { border-top: 1px solid #e5e5e5; margin-top: 6px; padding-top: 8px; font-weight: 700; }
.section-confirmation .os-ty { max-width: 520px; margin: 14px auto 18px; }
/* tap targets: upsell decline link + footer legal links/buttons (were 10-16px tall) */
.dont_text a, .no-thanx a { display: inline-block; padding: 12px 6px; }
#upsell-modal .dont_text a, #upsell-modal .dont_text span a { display: inline-block !important; padding: 14px 6px !important; }
#footer .bottom-links a, #footer p > button { display: inline-block; padding: 10px 4px; }
/* thank-you: "Order Status: Confirmed" reads on one line instead of wrapping beside the label */
.ty-box.center .address-title { display: block; }
/* thank-you: customer email in the statement card wraps instead of being cut with an ellipsis */
.customer-data .mail { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

/* AgentX #393 cosmetic round: (1) the logo stamped over the thank-you testimonial photo is hidden
   (header logo stays); (2) when the QA-mode banner is shown (QA only, never for customers) the page
   is pushed down by its height so the fixed bar no longer sits on top of the header. */
[class*="text-image-shadow"] .container > img.logo { display: none !important; }
body:has(#qa-mode-banner) { padding-top: 24px; }
/* VitalRestore mobile header pocket: the top strip (#f1f1f1), the band behind the logo (#e8e8e8) and the
   pocket gradient (#f1f1f1 -> #e8e8e8, drawn at a fixed 375px) showed as mismatched greys around the logo.
   One flat #f1f1f1 everywhere (svg second stop edited too) and the pocket stretched to the full width. */
.header__warning { background: #f1f1f1 !important; box-shadow: none !important; }
/* Never shrink the 375px pocket art (on 320px phones it rendered a stepped, light edge and a shallower pocket);
   only stretch it on wider screens so the sides stay covered. */
.header__warning:before { background-size: max(100%, 375px) auto !important; }

/* VitalRestore desktop header (AgentX #393): the mobile pocket fix above sets background-size:100% on
   .header__warning:before, which also stretched the DESKTOP header art and pushed its grey logo pocket off the
   logo. The desktop art is built at a fixed 1921px (as in the source funnels), so restore that on the desktop
   page only (the one with .header__info) - the logo sits back inside its pocket and stays legible. */
body:has(.header__info) .header__warning:before { background-size: 1921px !important; }

/* thank-you statement: bottom pink callout sized to the pink box in statement-desktop.webp
   (box = left 13.6%, top 66.4%, 61.3% x 27.2% of the image); content centred, product line kept
   on one line (fit-text script shrinks it to the box) so it never overlaps the box border on mobile */
.statement-wrapper .stmt-overlay-bottom {
  /* anchored to the image bottom (= wrapper bottom; the image sits below a top offset that differs per breakpoint):
     bottom margin + aspect-ratio are width-relative, so the box tracks the image at every width */
  left: 13.6% !important; width: 61.3% !important; top: auto !important; bottom: 0 !important;
  margin-bottom: 2.62% !important; height: auto !important; aspect-ratio: 984 / 177;
  display: flex !important; flex-direction: column; justify-content: center; align-items: center;
  box-sizing: border-box; padding: 0 2% !important; overflow: hidden;
}
.statement-wrapper .stmt-overlay-bottom .stmt-product-name {
  white-space: nowrap !important; max-width: 100%; margin-bottom: 0.2em !important;
}
.statement-wrapper .stmt-overlay-top {
  /* top pink callout = left 48.5%, 51% x 35.5% of the image, bottom edge 25.79%-of-width above the image bottom */
  left: 48.5% !important; width: 51% !important; top: auto !important; bottom: 0 !important;
  margin-bottom: 25.79% !important; height: auto !important; aspect-ratio: 819 / 231;
  display: flex !important; flex-direction: column; justify-content: center; align-items: flex-start;
  box-sizing: border-box; padding: 0 3% !important; overflow: hidden;
}

/* pkgbtn-final-2026: package buttons — text and the » arrows on one 43px line, space kept (Chris 2026-11-02) */
.package-btn, .package-btn.btn_pulse { display: block !important; height: 43px !important; line-height: 43px !important; padding: 0 !important; }
.package-btn span, .package-btn.btn_pulse span { display: inline-block !important; position: static !important; top: auto !important; bottom: auto !important; font-size: 22px !important; line-height: 43px !important; height: 43px !important; vertical-align: top !important; }

/* vr-center-desktop-2026: the desktop pop-up (d-payment.html: .ups > .u-main > .container, no .pop-content) is a flex item of #upsell-modal
   (showModal sets display:flex on the modal) and sat at the left edge. Centre it; layout inside unchanged. d-payment.html inlines
   upsell-modal.css, so this lives in ux-fixes.css which every card page loads. (Chris 2026-11-03) */
#upsell-modal[data-show="1"] { justify-content: center; }
