/**
 * Coded registration wizard (ht-wizard) — standalone, no Elementor dependency.
 * Same Hockey Therapy brand as the Elementor version: charcoal surfaces, ice #62C8F4,
 * Archivo Black headings, Montserrat UI. Scoped to body.ht-wizard-page / .htw-*.
 */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Montserrat:wght@400;500;600;700;800&display=swap');

body.ht-wizard-page {
	--ht-bg:          #050A0F;
	--ht-rink:        #071018;
	--ht-panel:       #111C26;
	--ht-card:        #0B141D;
	--ht-ice:         #62C8F4;
	--ht-ice-hover:   #66D2FF;
	--ht-text:        #ffffff;
	--ht-text-2:      #BFC8D0;
	--ht-muted:       #7E8B96;
	--ht-border:      #20313D;
	--ht-card-border: #1D2D38;
	--ht-ink:         #071018;
	--ht-glow:        rgba(98, 200, 244, .35);
	--ht-radius:      8px;
	--ht-radius-btn:  2px;

	margin: 0;
	min-height: 100vh;
	background: var(--ht-rink);
	color: var(--ht-text);
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* The page still loads the theme + Elementor kit via wp_head; force the kit's
	   accent colors to brand so no off-brand (red/pink) bleeds into button hovers. */
	--e-global-color-primary: #62C8F4;
	--e-global-color-accent: #62C8F4;
	--e-global-color-secondary: #BFC8D0;
	--e-global-color-text: #ffffff;
}
/* Our wizard buttons own their full appearance — no inherited theme/kit hover fills or gradients. */
body.ht-wizard-page .htw-card button { background-image: none; }
body.ht-wizard-page .htw-card button:hover { background-image: none; }

.htw-wrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 18px; box-sizing: border-box; }

/* In-flow payment step: render the checkout block as a single-column panel inside the wizard card,
   so it reads as another step (not a full-width checkout page). */
.htw-pay-panel .wc-block-components-sidebar-layout { display: block !important; }
.htw-pay-panel .wc-block-checkout__main,
.htw-pay-panel .wc-block-checkout__sidebar { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.htw-pay-panel .wc-block-checkout__sidebar { display: none !important; } /* order summary removed on the payment step */
.htw-pay-panel .wc-block-components-checkout-return-to-cart-button { display: none !important; } /* replaced by our Back to summary link */
.htw-pay-panel .wc-block-checkout__add-note { display: none !important; } /* no "add a note to your order" on the wizard payment step */
.htw-pay-panel .wc-block-checkout { margin: 0; }
/* WooCommerce's order "Details" disclosure (wc-block-components-panel, with the chevron) sits tight
   under the "Starting: <date>" line; give it a little breathing room. WC-generated markup. */
body.ht-wizard-page .wc-block-components-panel__button { margin-top: 10px; }
.htw-pay-back { display: inline-block; margin: 0 0 18px; color: var(--ht-ice); text-decoration: none; font-weight: 700; font-size: .82rem; }
.htw-pay-back:hover { text-decoration: underline; }

.htw-card {
	width: 100%;
	max-width: 820px;
	background: var(--ht-panel);
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
	padding: 34px clamp(20px, 5vw, 44px);
	box-sizing: border-box;
}

.htw-logo { text-align: center; margin-bottom: 22px; }
.htw-logo img { height: 72px; width: auto; }

/* ===== Stepper (horizontal, underline on active) ===== */
.htw-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 28px; padding: 0; counter-reset: htw; }
.htw-step { flex: 1 1 0; counter-increment: htw; text-align: left; padding-bottom: 8px; border-bottom: 2px solid var(--ht-border); }
.htw-step-label { color: var(--ht-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.htw-step.is-active { border-bottom-color: var(--ht-ice); }
.htw-step.is-active .htw-step-label { color: var(--ht-ice); }
.htw-step.is-done { border-bottom-color: var(--ht-ice); }
.htw-step.is-done .htw-step-label { color: var(--ht-text-2); }
@media (max-width: 520px) { .htw-step-label { font-size: .6rem; } }

/* ===== Panels ===== */
.htw-panel { display: none; }
.htw-panel.is-active { display: block; }
.htw-panel[hidden] { display: none; }

.htw-title { font-family: "Archivo Black", "Montserrat", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .5px; color: #fff; font-size: 1.6rem; line-height: 1.05; margin: 0 0 6px; }
.htw-sub { color: var(--ht-text-2); font-size: .92rem; margin: 0 0 22px; }

/* ===== Fields ===== */
.htw-field { margin-bottom: 16px; }
.htw-field-row { display: flex; gap: 12px; }
.htw-field-row .htw-field { flex: 1 1 0; }
.htw-label { display: block; color: var(--ht-text-2); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: .72rem; margin-bottom: 6px; }
.htw-input {
	width: 100%; box-sizing: border-box;
	background: var(--ht-bg); border: 1px solid var(--ht-border); border-radius: var(--ht-radius-btn);
	color: var(--ht-text); padding: 13px 15px; font-size: 1rem; font-family: "Montserrat", sans-serif;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.htw-input::placeholder { color: var(--ht-muted); }
.htw-input:focus { outline: none; border-color: var(--ht-ice); box-shadow: 0 0 0 3px var(--ht-glow); }

/* ===== Buttons ===== */
.htw-primary {
	width: 100%; display: block; background: var(--ht-ice); color: var(--ht-ink);
	font-family: "Montserrat", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; font-size: .9rem;
	border: 1px solid var(--ht-ice); border-radius: var(--ht-radius-btn); padding: 15px 26px; cursor: pointer;
	box-shadow: 0 4px 16px var(--ht-glow); transition: background .15s ease, border-color .15s ease;
}
.htw-primary:hover { background: var(--ht-ice-hover); border-color: var(--ht-ice-hover); }
.htw-primary:disabled { opacity: .6; cursor: default; }
.htw-ghost {
	background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55);
	border-radius: var(--ht-radius-btn); padding: 15px 26px; font-family: "Montserrat", sans-serif;
	font-weight: 700; text-transform: uppercase; letter-spacing: .6px; font-size: .9rem; cursor: pointer; transition: .15s ease;
}
.htw-ghost:hover { background: var(--ht-ice); border-color: var(--ht-ice); color: var(--ht-ink); }
.htw-nav { display: flex; gap: 12px; margin-top: 8px; }
.htw-nav .htw-primary, .htw-nav .htw-ghost { width: auto; flex: 1 1 0; }
/* The wizard page also loads the theme + Elementor kit, which can force white-space:nowrap on
   buttons; re-assert wrapping so long labels/descriptions can't clip out of their box on mobile. */
.htw-primary, .htw-ghost, .htw-aud-card { white-space: normal; overflow-wrap: break-word; }
.htw-aud-text { min-width: 0; }
/* Narrow screens: stack the Back / primary nav so a long primary label ("Proceed to secure payment")
   gets the full width instead of being crammed into half the row and clipped. */
@media (max-width: 560px) {
	.htw-nav { flex-direction: column; }
	.htw-nav .htw-primary, .htw-nav .htw-ghost { width: 100%; flex: 1 1 auto; }
	.htw-primary, .htw-ghost { font-size: .84rem; padding: 14px 18px; letter-spacing: .4px; }
	/* Stepper: 5 nowrap labels can't fit a phone and run off the edge. Keep the underline segments
	   as a slim progress bar and drop the labels; the step title below (e.g. "Payment") names it. */
	.htw-steps { gap: 5px; margin-bottom: 22px; }
	.htw-step { min-width: 0; padding-bottom: 0; border-bottom-width: 3px; }
	/* Hidden from sight, not from a screen reader. display:none removed the names
	   from the accessibility tree, which left the stepper announcing " (completed)"
	   three times and a current step with no name at all (HT-25). */
	.htw-step-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}

/* ===== Fine print + error + back link ===== */
.htw-fine { color: var(--ht-muted); font-size: .76rem; text-align: center; margin: 16px 0 0; }
.htw-error { display: block; color: #F5B301; font-weight: 600; font-size: .85rem; margin: 0 0 14px; }
.htw-error[hidden] { display: none; }
/* Same slot, different weather: "welcome back" is not a warning. */
.htw-error.is-notice { color: #9FD8CB; }
.htw-back-login { text-align: center; margin: 22px 0 0; }
.htw-back-login a { color: var(--ht-ice); text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: .76rem; }
.htw-back-login a:hover { color: var(--ht-ice-hover); text-decoration: underline; }

/* ===== Step 2: audience cards ===== */
/* Screen-reader-only text. Not display:none, which would take it out of the
   accessibility tree along with the visual layout. */
.htw-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* A fieldset, so reset the defaults it brings with it. The flex goes on the inner
   div rather than here: display:flex on a fieldset still renders inconsistently
   across browsers, and this is the registration path. */
.htw-audience { border: 0; padding: 0; margin: 0 0 18px; }
.htw-audience-options { display: flex; flex-direction: column; gap: 12px; }
/* The radio is the control and the card is its label, so the input stays
   focusable rather than hidden: the focus ring below keys off it. */
.htw-aud-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
/* :focus-within, not :has(). The radio is the only focusable thing in the card,
   so it says the same thing with far wider browser support. */
.htw-aud-card:focus-within { outline: none; box-shadow: 0 0 0 3px var(--ht-glow); }
.htw-aud-card {
	display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
	background: var(--ht-card); border: 1px solid var(--ht-card-border); border-radius: var(--ht-radius);
	padding: 18px 18px; cursor: pointer; color: var(--ht-text); font-family: "Montserrat", sans-serif;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.htw-aud-card:hover { border-color: var(--ht-ice); background: rgba(98, 200, 244, .06); }
.htw-aud-card.is-selected { border-color: var(--ht-ice); background: rgba(98, 200, 244, .08); box-shadow: 0 0 0 1px var(--ht-glow); }
.htw-aud-card.is-selected:hover { background: rgba(98, 200, 244, .12); }
.htw-aud-radio { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ht-border); position: relative; transition: border-color .15s ease; }
.htw-aud-card.is-selected .htw-aud-radio { border-color: var(--ht-ice); }
.htw-aud-card.is-selected .htw-aud-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ht-ice); }
.htw-aud-text { display: flex; flex-direction: column; gap: 3px; }
.htw-aud-title { font-weight: 700; font-size: .98rem; }
.htw-aud-desc { color: var(--ht-muted); font-size: .82rem; }

/* ===== Step 2: inset (game info / players) ===== */
.htw-inset { background: var(--ht-card); border: 1px solid var(--ht-card-border); border-radius: var(--ht-radius); padding: 18px 18px; margin-bottom: 14px; }
.htw-inset-title { font-family: "Montserrat", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; font-size: .82rem; color: var(--ht-text-2); margin: 0 0 14px; }

/* native select arrow + dark style */
.htw-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237E8B96' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }

/* ===== Step 2: player repeater ===== */
.htw-players { display: flex; flex-direction: column; gap: 10px; }
.htw-player-row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.htw-player-name { flex: 1 1 110px; min-width: 0; }
.htw-player-email { flex: 1.6 1 150px; min-width: 0; }
.htw-player-position { flex: 0 0 116px; }
/* Sized for the "Birth Year" placeholder, which is the widest thing it will ever show:
   once a year is picked it reads "2014". It carries the select arrow's 34px of right
   padding, so the box is wider than the text alone suggests. The birth-month select
   beside it came out with HT-165, and the row gave its width back to the email. */
.htw-player-birth-year { flex: 0 0 116px; }
.htw-player-remove { flex: 0 0 auto; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; background: transparent; border: 1px solid var(--ht-border); color: var(--ht-muted); border-radius: var(--ht-radius-btn); cursor: pointer; transition: .15s ease; }
.htw-player-remove svg { width: 16px; height: 16px; display: block; }
.htw-player-remove:hover { border-color: #f87171; color: #f87171; background: transparent; }
/* Compact text in the player rows so long placeholders (e.g. the member email) fit the slot */
.htw-player-row .htw-input { font-size: .82rem; padding: 11px 12px; }
.htw-player-row .htw-input::placeholder { font-size: .78rem; }
/* Narrow screens: let the row wrap so fields stay usable */
@media (max-width: 720px) {
	.htw-player-row { flex-wrap: wrap; }
	.htw-player-name, .htw-player-email { flex: 1 1 100%; }
	.htw-player-position { flex: 1 1 auto; }
	.htw-player-birth-year { flex: 1 1 116px; }
}
.htw-add-player { margin-top: 12px; background: transparent; border: 1px dashed var(--ht-ice); color: var(--ht-ice); border-radius: var(--ht-radius-btn); padding: 11px 18px; width: 100%; cursor: pointer; font-weight: 700; font-size: .82rem; transition: .15s ease; }
.htw-add-player:hover { background: rgba(98, 200, 244, .10); }

/* hello-elementor's reset.css fills focused <button>s with its crimson accent
   (#c36). Our wizard buttons defined no :focus, so after a click the button keeps
   focus and turns red (e.g. "Add another player" stayed red after being clicked).
   Restore each button's brand look while focused-but-not-hovered so the theme
   crimson never shows; hover styles still win during hover, and keyboard focus
   gets an ice ring. :not(:hover) also out-specifies the theme rule, so this wins
   regardless of stylesheet load order. */
.htw-primary:focus:not(:hover) { background: var(--ht-ice); color: var(--ht-ink); }
.htw-ghost:focus:not(:hover) { background: transparent; color: #fff; }
.htw-add-player:focus:not(:hover) { background: transparent; color: var(--ht-ice); }
.htw-player-remove:focus:not(:hover) { background: transparent; color: var(--ht-muted); }
/* HT-19 made this the only keyboard route to choosing a tier, so it needs the
   same shield as every other button here: without it a keyboard user gets the
   theme's crimson fill on the primary action of step 3. */
.htw-tier-select:focus:not(:hover) { background: var(--ht-ice); color: var(--ht-ink); }
.htw-tier-select:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ht-glow); }
/* The Coming soon buttons are disabled, and the theme's rule is `button:hover`
   with no :not(:disabled), so hovering one painted it crimson while it did
   nothing at all. Raising the card opacity for HT-26 made that more vivid
   rather than less, so it belongs in this change. */
.htw-tier-select[disabled]:hover,
.htw-tier-select[disabled]:focus { background: transparent; color: var(--ht-muted); border-color: var(--ht-card-border); cursor: default; }
.htw-primary:focus-visible, .htw-ghost:focus-visible, .htw-add-player:focus-visible,
.htw-player-remove:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ht-glow); }
/* Dynamic per-player pricing upsell (Step 2) */
.htw-nudge { display: flex; align-items: center; gap: 8px; background: rgba(98, 200, 244, .12); border: 1px solid var(--ht-ice); border-left-width: 3px; border-radius: var(--ht-radius); color: var(--ht-text); font-size: .86rem; font-weight: 600; padding: 12px 14px; margin: 4px 0 16px; }
.htw-nudge::before { content: "▲"; color: var(--ht-ice); font-size: .7rem; }
.htw-nudge[hidden] { display: none; }

.htw-note { background: rgba(98, 200, 244, .10); border: 1px solid rgba(98, 200, 244, .25); border-radius: var(--ht-radius); color: var(--ht-text-2); font-size: .85rem; padding: 12px 14px; margin: 0 0 14px; }
.htw-note[hidden] { display: none; }

/* ===== Step 2: price bar ===== */
.htw-price-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ht-bg); border: 1px solid var(--ht-ice); border-radius: var(--ht-radius); padding: 14px 18px; margin: 4px 0 16px; }
.htw-price-label { color: var(--ht-text); font-weight: 600; font-size: .9rem; }
.htw-price-amt { color: var(--ht-ice); font-weight: 800; font-size: 1rem; white-space: nowrap; }

/* ===== Step 3: summary bar ===== */
.htw-summary { display: flex; align-items: center; gap: 12px; background: var(--ht-card); border: 1px solid var(--ht-card-border); border-radius: var(--ht-radius); padding: 14px 16px; margin: 0 0 18px; }
.htw-summary-check { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--ht-ice); color: var(--ht-ink); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.htw-summary-text { flex: 1 1 auto; color: var(--ht-text); font-size: .88rem; }
.htw-summary-edit { flex: 0 0 auto; background: none; border: none; color: var(--ht-ice); font-weight: 700; font-size: .82rem; cursor: pointer; }
.htw-summary-edit:hover { color: var(--ht-ice-hover); text-decoration: underline; background: transparent; }

/* ===== Step 3: tier cards ===== */
/* Cards share the row evenly however many there are. The count is not fixed: the Coaches tier
   is gated behind ht_wizard_show_coaches_tier(), so this renders 3 or 4 without a CSS change. */
.htw-tiers { display: flex; gap: 12px; margin: 0 0 16px; }
.htw-tier { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 9px; background: var(--ht-card); border: 1px solid var(--ht-card-border); border-radius: var(--ht-radius); padding: 20px 14px; }
.htw-tier.is-selectable { cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.htw-tier.is-selectable:hover { border-color: var(--ht-ice); transform: translateY(-2px); box-shadow: 0 0 0 1px var(--ht-glow), 0 12px 32px rgba(0, 0, 0, .5); }
.htw-tier.is-selected { border-color: var(--ht-ice); background: rgba(98, 200, 244, .06); box-shadow: 0 0 0 2px var(--ht-glow), 0 14px 34px rgba(0, 0, 0, .5); }
/* .75, not .55. At .55 the description and button label measured 2.46:1 against
   the 4.5:1 AA wants (HT-26). These cards are genuinely disabled, so 1.4.3's
   inactive-component exemption probably covers them, but the exemption is
   arguable and this is free. Still reads as unavailable beside an active card. */
.htw-tier.is-soon { opacity: .75; }
.htw-tier-badge { position: absolute; top: -11px; left: 18px; background: var(--ht-ice); color: var(--ht-ink); font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.htw-tier-badge-soon { background: var(--ht-muted); left: 50%; transform: translateX(-50%); }
.htw-tier-name { font-family: "Montserrat", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; font-size: 1.02rem; color: var(--ht-text); margin: 4px 0 0; }
.htw-tier-price { font-family: "Archivo Black", sans-serif; font-size: 1.55rem; color: var(--ht-ice); line-height: 1.05; }
.htw-tier-price .woocommerce-Price-amount { color: var(--ht-ice); }
.htw-tier-sub { color: var(--ht-muted); font-size: .8rem; margin: 0; }
.htw-tier-meta { color: var(--ht-muted); font-size: .85rem; margin: 2px 0 0; }
.htw-tier-feats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.htw-tier-feats li { position: relative; padding-left: 22px; font-size: .82rem; color: var(--ht-text-2); }
.htw-tier-feats li.yes::before { content: "✓"; position: absolute; left: 0; color: var(--ht-ice); font-weight: 800; }
.htw-tier-feats li.no { color: var(--ht-muted); }
.htw-tier-feats li.no::before { content: "—"; position: absolute; left: 0; color: var(--ht-muted); }
.htw-tier-select { margin-top: auto; background: transparent; border: 1px solid var(--ht-border); color: var(--ht-text); border-radius: var(--ht-radius-btn); padding: 11px; font-family: "Montserrat", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; font-size: .76rem; cursor: pointer; transition: .15s ease; }
.htw-tier.is-selectable:not(.is-selected) .htw-tier-select:hover { border-color: var(--ht-ice); color: var(--ht-ice); background: transparent; }
.htw-tier.is-selected .htw-tier-select { background: var(--ht-ice); border-color: var(--ht-ice); color: var(--ht-ink); }
.htw-tier-select:disabled { cursor: default; color: var(--ht-muted); }
/* Stack the tier cards only on mobile; one row on desktop/tablet */
@media (max-width: 640px) { .htw-tiers { flex-direction: column; } }

/* ===== Step 3: pricing hint ===== */
.htw-hint { background: rgba(98, 200, 244, .08); border: 1px dashed rgba(98, 200, 244, .4); border-radius: var(--ht-radius); color: var(--ht-text-2); font-size: .84rem; padding: 12px 14px; margin: 0 0 16px; cursor: pointer; }
.htw-hint[hidden] { display: none; }
.htw-hint:hover { background: rgba(98, 200, 244, .14); }

/* ===== Step 4: order summary ===== */
.htw-order { background: var(--ht-card); border: 1px solid var(--ht-card-border); border-radius: var(--ht-radius); padding: 6px 18px 18px; margin: 0 0 16px; }
.htw-order-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ht-border); }
.htw-order-block { padding: 14px 0; border-bottom: 1px solid var(--ht-border); }
.htw-order-k { color: var(--ht-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: .72rem; }
.htw-order-v { color: var(--ht-text); font-size: .9rem; text-align: right; }
.htw-order-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.htw-order-list li { font-size: .88rem; color: var(--ht-text-2); }
.htw-order-mname { color: var(--ht-text); font-weight: 600; }
.htw-order-mmeta { color: var(--ht-muted); }
.htw-order-minvite { color: var(--ht-ice); font-size: .82rem; }
.htw-order-empty { color: #F5B301; }
.htw-order-total { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 6px; font-weight: 700; }
.htw-order-total > span:first-child { text-transform: uppercase; letter-spacing: .5px; font-size: .8rem; color: var(--ht-text-2); }
.htw-order-amt { font-family: "Archivo Black", sans-serif; color: var(--ht-ice); font-size: 1.5rem; line-height: 1; }
.htw-order-amt small { font-family: "Montserrat", sans-serif; font-size: .8rem; color: var(--ht-text-2); font-weight: 600; }
.htw-order-note { color: var(--ht-muted); font-size: .78rem; margin: 10px 0 0; }

/* ===== Legal modal (Terms of Service; Privacy Policy reuses it) ===== */
.htw-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.htw-modal[hidden] { display: none; }
.htw-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.htw-modal-card { position: relative; z-index: 1; width: 100%; max-width: 720px; max-height: 86vh; display: flex; flex-direction: column;
	background: var(--ht-panel); border: 1px solid var(--ht-border); border-radius: var(--ht-radius);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden; }
.htw-modal-x { position: absolute; top: 12px; right: 14px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center;
	background: transparent; border: 1px solid var(--ht-border); border-radius: var(--ht-radius-btn); color: var(--ht-text-2);
	font-size: 1rem; line-height: 1; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
/* Override the hello-elementor reset.css crimson button :hover/:focus (see the button focus fix). */
.htw-modal-x:hover, .htw-modal-x:focus { background: transparent; border-color: var(--ht-ice); color: var(--ht-ice); outline: none; }
.htw-modal-x:focus-visible { box-shadow: 0 0 0 3px var(--ht-glow); }
.htw-modal-body { overflow-y: auto; padding: 36px 30px 30px; color: var(--ht-text-2); font-size: .9rem; line-height: 1.65; }
/* The scrollable legal text is a tab stop (see wizard.php). .htw-modal-card sets
   overflow:hidden and this fills it edge to edge, so a default outline drawn outside the
   border box is clipped and focus becomes invisible. Inset shadow instead. */
.htw-modal-body:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ht-ice); }
.htw-modal-body h2 { font-family: "Archivo Black", "Montserrat", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .5px; color: #fff; font-size: 1.3rem; line-height: 1.15; margin: 0 0 4px; padding-right: 40px; }
.htw-modal-body h3 { color: #fff; font-size: .98rem; font-weight: 700; margin: 22px 0 6px; }
.htw-modal-body p { margin: 0 0 12px; }
.htw-modal-body .htw-legal-eff { color: var(--ht-muted); font-size: .8rem; margin: 0 0 18px; }
.htw-modal-body a { color: var(--ht-ice); }
body.ht-wizard-page.htw-modal-open { overflow: hidden; }
/* Terms/Privacy link inside the persistent fine print */
.htw-legal-link { color: var(--ht-ice); text-decoration: underline; cursor: pointer; }
.htw-legal-link:hover { color: var(--ht-ice-hover); }

/* ===== Payment step: legal links + secured-transaction reassurance =====
   WooCommerce's checkout block prints its own "you agree to our Terms/Privacy"
   notice with links to unset WC pages (dead). Hide it and use our own linked line
   (rendered below the block) so Terms/Privacy open the same modals as the rest of
   the wizard. NOTE: this hides the informational terms notice — if a REQUIRED terms
   checkbox is ever enabled in WooCommerce, revisit (don't hide a required control). */
.htw-pay-panel .wc-block-checkout__terms { display: none !important; }
/* Lock icon next to "Place Order" (dark, to match the ice button's ink text). */
.htw-pay-panel .wc-block-components-checkout-place-order-button::before {
	content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 9px; vertical-align: -2px;
	background: center/contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23071018'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='4.5'%20y='11'%20width='15'%20height='10'%20rx='2'/%3E%3Cpath%20d='M8%2011V7a4%204%200%200%201%208%200v4'/%3E%3C/svg%3E");
}
/* "Secured transaction" note directly under the Place Order button (sits just below the
   pay panel, so it is NOT scoped under .htw-pay-panel). */
.htw-secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ht-muted); font-size: .78rem; margin: 12px 0 0; }
.htw-secure-note .htw-lock { flex: 0 0 auto; }

/* ===== Password requirements checklist (live-updated by wizard-app.js) ===== */
.htw-pass-reqs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.htw-pass-reqs li { position: relative; padding-left: 20px; font-size: .78rem; line-height: 1.5; color: var(--ht-muted); transition: color .15s ease; }
.htw-pass-reqs li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px;
	border: 1px solid var(--ht-muted); border-radius: 50%; box-sizing: border-box; transition: border-color .15s ease, background-color .15s ease; }
.htw-pass-reqs li.is-met { color: var(--ht-ice); }
.htw-pass-reqs li.is-met::before { border-color: var(--ht-ice); background-color: var(--ht-ice);
	/* white check mark on the ice dot */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071018' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-size: 10px 10px; background-position: center; background-repeat: no-repeat; }
@media (max-width: 460px) { .htw-pass-reqs { grid-template-columns: 1fr; } }

/* The sign-out link inside the error box (ht_signin_error=2). color:inherit takes the box's
   amber (#F5B301) so the link reads as part of the message rather than a stray link beside it. */
.htw-error-action { color: inherit; font-weight: 700; text-decoration: underline; }
