/**
 * Helios Checkout - Stripe-style Layout (Phase 2.5)
 *
 * Matches the actual Stripe Embedded Checkout reference:
 * - Summary: flat on page background, no card
 * - Form: white card with rounded corners
 * - Fields: connected groups, placeholder-only, shared borders
 */

/* ─────────────────────────────────────────────────────────
   Suppress competing UI
   ───────────────────────────────────────────────────────── */
.hc-checkout .woocommerce-form-coupon-toggle,
.hc-checkout .woocommerce-form-coupon,
.hc-checkout .checkout_coupon,
.hc-checkout form.checkout_coupon,
.hc-checkout .woocommerce-form-login-toggle,
.hc-checkout .woocommerce-form-login,
.hc-checkout > .woocommerce-info,
.hc-checkout .hc-form > .woocommerce-info,
.hc-checkout .hc-form > .woocommerce-form-coupon-toggle,
.hc-checkout .hc-form > .woocommerce-form-login-toggle,
.hc-checkout .flux-checkout,
.hc-checkout [class*="flux-"] {
	display: none !important;
}

/* Screen reader only - for hidden labels */
.hc-checkout .hc-sr-only,
.hc-checkout .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ─────────────────────────────────────────────────────────
   Reset
   ───────────────────────────────────────────────────────── */
.hc-checkout,
.hc-checkout *,
.hc-checkout *::before,
.hc-checkout *::after {
	box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────
   Root container & layout
   ───────────────────────────────────────────────────────── */
.hc-checkout {
	--hc-text: #1a1a1a;
	--hc-text-muted: #6b6b6b;
	--hc-text-light: #a0a0a0;
	--hc-bg: #ffffff;
	--hc-bg-page: #f6f6f8;
	--hc-bg-subtle: #fafafa;
	--hc-border: #e5e5e7;
	--hc-border-strong: #d0d0d0;
	--hc-success: #0a7c3e;
	--hc-error: #d93025;
	--hc-radius-card: 12px;
	--hc-radius-field: 8px;
	--hc-radius-sm: 4px;
	--hc-gap: 64px;

	display: grid !important;
	gap: var(--hc-gap);
	color: var(--hc-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px;
}

.hc-checkout.hc-layout--two-column {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas: "summary form";
	align-items: start;
}

.hc-checkout.hc-layout--reversed {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas: "form summary";
	align-items: start;
}

.hc-checkout.hc-layout--stacked {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"summary"
		"form";
	gap: 32px;
}

/* Summary column wraps the summary-wrap and (when present) the
   coupon-slot. Acts as a single grid item on desktop so the form
   column doesn't need to span rows — the form stays naturally
   sized to its own content height, and the summary-col stacks
   its children top-down via flex. */
.hc-checkout .hc-checkout__summary-col {
	grid-area: summary;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hc-checkout .hc-checkout__summary-wrap { min-width: 0; }
.hc-checkout .hc-checkout__form-wrap { grid-area: form; min-width: 0; }
.hc-checkout .hc-checkout__coupon-slot { min-width: 0; }

@media (min-width: 992px) {
	.hc-checkout[data-hc-sticky="true"] .hc-checkout__summary-wrap {
		position: sticky;
		top: 32px;
	}
}

/* ─────────────────────────────────────────────────────────
   Typography reset
   ───────────────────────────────────────────────────────── */
.hc-checkout h1,
.hc-checkout h2,
.hc-checkout h3,
.hc-checkout h4 {
	font-family: inherit !important;
	color: var(--hc-text) !important;
	letter-spacing: -0.01em !important;
	text-transform: none !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
}

.hc-checkout p { margin: 0 0 8px; color: inherit; }
.hc-checkout button { font-family: inherit; cursor: pointer; }

/* ─────────────────────────────────────────────────────────
   Mobile summary toggle
   ───────────────────────────────────────────────────────── */
.hc-checkout .hc-mobile-summary-toggle {
	display: none !important;
	width: 100%;
	padding: 14px 16px;
	background: var(--hc-bg);
	border: 1px solid var(--hc-border);
	border-radius: var(--hc-radius-card);
	font-size: 14px;
	color: var(--hc-text);
	font-weight: 500;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-family: inherit;
	grid-column: 1 / -1;
}

.hc-checkout .hc-mobile-summary-toggle__label { flex: 1; text-align: left; }
.hc-checkout .hc-mobile-summary-toggle__total { font-weight: 600; }
.hc-checkout .hc-mobile-summary-toggle__icon { transition: transform 0.2s ease; }
.hc-checkout .hc-mobile-summary-toggle[aria-expanded="true"] .hc-mobile-summary-toggle__icon {
	transform: rotate(180deg);
}

@media (max-width: 768px) {
	.hc-checkout { gap: 24px; padding: 16px 12px; }

	/* Collapse to a single column for all non-stacked layouts. The
	   grid areas are then set per mobile_summary mode below. */
	.hc-checkout.hc-layout--two-column,
	.hc-checkout.hc-layout--reversed {
		grid-template-columns: 1fr !important;
	}

	/* Dissolve the summary-col wrapper so its children become direct
	   grid items of .hc-checkout. This lets the coupon escape the
	   summary column and be placed independently (e.g. under the
	   form in "bottom" mode), and lets grid-template-areas target
	   summary-wrap and coupon-slot by name. */
	.hc-checkout .hc-checkout__summary-col { display: contents; }
	.hc-checkout .hc-checkout__summary-wrap { grid-area: summary; }
	.hc-checkout .hc-checkout__coupon-slot { grid-area: coupon; }

	.hc-checkout .hc-mobile-summary-toggle { grid-area: toggle; }

	/* ─ Accordion mode (default) ───────────────────────────────
	   Show the toggle, hide the summary until the toggle expands
	   it via the .hc-checkout--summary-open class. */
	.hc-checkout[data-hc-mobile-summary="accordion"] .hc-mobile-summary-toggle {
		display: flex !important;
	}
	.hc-checkout[data-hc-mobile-summary="accordion"].hc-layout--two-column,
	.hc-checkout[data-hc-mobile-summary="accordion"].hc-layout--reversed {
		grid-template-areas:
			"toggle"
			"summary"
			"form" !important;
	}
	.hc-checkout[data-hc-mobile-summary="accordion"].hc-layout--two-column:has(.hc-checkout__coupon-slot),
	.hc-checkout[data-hc-mobile-summary="accordion"].hc-layout--reversed:has(.hc-checkout__coupon-slot) {
		grid-template-areas:
			"toggle"
			"summary"
			"coupon"
			"form" !important;
	}
	.hc-checkout[data-hc-mobile-summary="accordion"] .hc-checkout__summary-wrap {
		display: none;
	}
	.hc-checkout[data-hc-mobile-summary="accordion"].hc-checkout--summary-open .hc-checkout__summary-wrap {
		display: block;
	}

	/* ─ Top mode ─────────────────────────────────────────────
	   Summary always visible above the form, no toggle. */
	.hc-checkout[data-hc-mobile-summary="top"].hc-layout--two-column,
	.hc-checkout[data-hc-mobile-summary="top"].hc-layout--reversed {
		grid-template-areas:
			"summary"
			"form" !important;
	}
	.hc-checkout[data-hc-mobile-summary="top"].hc-layout--two-column:has(.hc-checkout__coupon-slot),
	.hc-checkout[data-hc-mobile-summary="top"].hc-layout--reversed:has(.hc-checkout__coupon-slot) {
		grid-template-areas:
			"summary"
			"coupon"
			"form" !important;
	}

	/* ─ Bottom mode ──────────────────────────────────────────
	   Summary always visible below the form, no toggle. */
	.hc-checkout[data-hc-mobile-summary="bottom"].hc-layout--two-column,
	.hc-checkout[data-hc-mobile-summary="bottom"].hc-layout--reversed {
		grid-template-areas:
			"form"
			"summary" !important;
	}
	.hc-checkout[data-hc-mobile-summary="bottom"].hc-layout--two-column:has(.hc-checkout__coupon-slot),
	.hc-checkout[data-hc-mobile-summary="bottom"].hc-layout--reversed:has(.hc-checkout__coupon-slot) {
		grid-template-areas:
			"form"
			"summary"
			"coupon" !important;
	}

	/* Stacked layout follows source order via summary-col's display:
	   contents — summary, coupon, form stack naturally top-to-bottom. */
}

/* ─────────────────────────────────────────────────────────
   Empty cart
   ───────────────────────────────────────────────────────── */
.hc-checkout--empty .hc-empty-cart {
	grid-column: 1 / -1;
	text-align: center;
	padding: 64px 24px;
	background: var(--hc-bg);
	border-radius: var(--hc-radius-card);
	border: 1px solid var(--hc-border);
}

.hc-empty-cart h2 { font-size: 20px !important; margin: 16px 0 8px !important; }
.hc-empty-cart p { color: var(--hc-text-muted); margin: 0 0 20px; }

/* ─────────────────────────────────────────────────────────
   Generic buttons
   ───────────────────────────────────────────────────────── */
.hc-checkout .hc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: var(--hc-radius-field);
	font-size: 14px;
	font-weight: 500;
	border: 1px solid var(--hc-border);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
	text-decoration: none;
	font-family: inherit;
	background: var(--hc-bg);
	color: var(--hc-text);
}
.hc-checkout .hc-button--primary {
	background: var(--hc-text);
	color: #fff !important;
	border-color: var(--hc-text);
}
.hc-checkout .hc-button--primary:hover { background: #000; }

/* ═════════════════════════════════════════════════════════
   SUMMARY - flat on page, no card
   ═════════════════════════════════════════════════════════ */
.hc-checkout .hc-summary {
	background: transparent;
	padding: 0;
	border: none;
	border-radius: 0;
}

.hc-checkout .hc-summary__header {
	margin: 0 0 24px;
	padding: 0;
}

.hc-checkout .hc-summary__title {
	font-size: 14px !important;
	font-weight: 400 !important;
	color: var(--hc-text-muted) !important;
	margin: 0 0 4px !important;
	letter-spacing: 0 !important;
}

.hc-checkout .hc-summary__total-headline {
	font-size: 36px;
	font-weight: 600;
	color: var(--hc-text);
	letter-spacing: -0.02em;
	line-height: 1.1;
}

/* Items list - no top border, just internal dividers */
.hc-checkout .hc-summary__items {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hc-checkout .hc-summary__item {
	display: grid !important;
	grid-template-columns: 48px 1fr auto !important;
	gap: 12px;
	padding: 12px 0;
	align-items: center;
	list-style: none !important;
}
.hc-checkout .hc-summary__item::before { display: none !important; }

.hc-checkout .hc-summary__item-image {
	width: 48px;
	height: 48px;
	border-radius: var(--hc-radius-sm);
	overflow: hidden;
	background: #e8e8ec;
}

.hc-checkout .hc-summary__item-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
	margin: 0;
	border-radius: 0;
}

.hc-checkout .hc-summary__item-details { min-width: 0; }

.hc-checkout .hc-summary__item-name {
	font-weight: 400;
	font-size: 14px;
	margin-bottom: 0;
	line-height: 1.4;
	color: var(--hc-text);
}

.hc-checkout .hc-summary__item-meta {
	font-size: 12px;
	color: var(--hc-text-muted);
	margin-top: 2px;
}
.hc-checkout .hc-summary__item-meta p { margin: 0; }

/* Out-of-stock / low-stock indicators on cart items. The whole item
   gets a softened look when unavailable so the customer's eye is drawn
   to the warning row. */
.hc-checkout .hc-summary__item-stock-warning {
	font-size: 12px;
	font-weight: 600;
	margin-top: 4px;
	padding: 4px 8px;
	border-radius: 6px;
	display: inline-block;
}
.hc-checkout .hc-summary__item-stock-warning--unavailable {
	color: #b91c1c;
	background: #fee2e2;
}
.hc-checkout .hc-summary__item-stock-warning--low {
	color: #92400e;
	background: #fef3c7;
}
.hc-checkout .hc-summary__item--unavailable .hc-summary__item-image,
.hc-checkout .hc-summary__item--unavailable .hc-summary__item-name,
.hc-checkout .hc-summary__item--unavailable .hc-summary__item-meta,
.hc-checkout .hc-summary__item--unavailable .hc-summary__item-price {
	opacity: 0.55;
}

/* Checkout-level notices container. Spacing above WC's notice list so
   stock warnings etc. don't collide with the section heading below. */
.hc-checkout .hc-checkout-notices:not(:empty) {
	margin-bottom: 20px;
}
.hc-checkout .hc-checkout-notices .woocommerce-error,
.hc-checkout .hc-checkout-notices .woocommerce-message,
.hc-checkout .hc-checkout-notices .woocommerce-info {
	margin: 0 0 12px;
	padding: 12px 16px;
	border-radius: 8px;
	list-style: none;
}
.hc-checkout .hc-checkout-notices .woocommerce-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}
.hc-checkout .hc-checkout-notices .woocommerce-message {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}
.hc-checkout .hc-checkout-notices .woocommerce-info {
	background: #dbeafe;
	color: #1e40af;
	border: 1px solid #93c5fd;
}

.hc-checkout .hc-summary__item-quantity {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
}

.hc-checkout .hc-qty-btn {
	width: 22px !important;
	height: 22px !important;
	border: 1px solid var(--hc-border) !important;
	background: var(--hc-bg) !important;
	border-radius: var(--hc-radius-sm) !important;
	cursor: pointer;
	font-size: 12px !important;
	line-height: 1 !important;
	color: var(--hc-text-muted) !important;
	font-family: inherit;
	padding: 0 !important;
	min-width: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.hc-checkout .hc-qty-btn:hover {
	border-color: var(--hc-border-strong) !important;
	color: var(--hc-text) !important;
}

.hc-checkout .hc-qty-input {
	width: 36px !important;
	height: 22px !important;
	text-align: center !important;
	border: 1px solid var(--hc-border) !important;
	border-radius: var(--hc-radius-sm) !important;
	font-size: 11px !important;
	padding: 0 !important;
	-moz-appearance: textfield;
	font-family: inherit;
	box-shadow: none !important;
	background: var(--hc-bg) !important;
	color: var(--hc-text) !important;
}
.hc-checkout .hc-qty-input::-webkit-outer-spin-button,
.hc-checkout .hc-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.hc-checkout .hc-summary__item-quantity-static {
	font-size: 13px;
	color: var(--hc-text-muted);
	margin-top: 4px;
}

.hc-checkout .hc-summary__item-price {
	text-align: right;
	font-size: 14px;
	font-weight: 400;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	white-space: nowrap;
	color: var(--hc-text);
}

.hc-checkout .hc-summary__item-remove {
	background: none !important;
	border: none !important;
	cursor: pointer;
	color: var(--hc-text-light) !important;
	padding: 2px !important;
	border-radius: var(--hc-radius-sm);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.hc-checkout .hc-summary__item-remove:hover {
	color: var(--hc-error) !important;
}

/* Totals - thin divider above, tight rows */
.hc-checkout .hc-summary__totals {
	margin: 0 !important;
	padding: 16px 0 0 !important;
	display: block;
	border-top: 1px solid var(--hc-border);
}

.hc-checkout .hc-summary__row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	padding: 6px 0;
	font-size: 14px;
	margin: 0 !important;
}

.hc-checkout .hc-summary__row dt,
.hc-checkout .hc-summary__row dd {
	margin: 0 !important;
	padding: 0 !important;
	font-weight: 400;
	color: var(--hc-text);
	display: flex;
	align-items: center;
	gap: 6px;
}

.hc-checkout .hc-summary__row dd { font-weight: 400; }

.hc-checkout .hc-summary__row-detail {
	display: block;
	font-size: 11px;
	color: var(--hc-text-muted);
	margin-top: 2px;
	width: 100%;
	font-weight: 400;
}

/* Coupon row - special pill display, all children inline */
.hc-checkout .hc-summary__row--coupon dt {
	flex-direction: row;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.hc-checkout .hc-coupon-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #e8e8ec;
	padding: 4px 10px;
	border-radius: var(--hc-radius-sm);
	font-size: 13px;
	font-weight: 500;
	color: var(--hc-text);
}

.hc-checkout .hc-coupon-tag svg {
	width: 14px;
	height: 14px;
	color: var(--hc-text-muted);
}

.hc-checkout .hc-coupon-detail {
	font-size: 12px;
	color: var(--hc-text-muted);
	font-weight: 400;
}

.hc-checkout .hc-coupon-remove {
	background: none !important;
	border: none !important;
	color: var(--hc-text-light) !important;
	cursor: pointer;
	font-size: 14px !important;
	padding: 0 4px !important;
	line-height: 1;
}
.hc-checkout .hc-coupon-remove:hover { color: var(--hc-error) !important; }

.hc-checkout .hc-info-btn {
	background: none !important;
	border: none !important;
	color: var(--hc-text-light) !important;
	cursor: help;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
}

.hc-checkout .hc-summary__placeholder-text {
	color: var(--hc-text-muted);
	font-size: 13px;
	font-weight: 400;
}

/* Total row - same line, no border above (already separated by divider) */
.hc-checkout .hc-summary__row--total {
	margin-top: 12px !important;
	padding-top: 16px !important;
	border-top: 1px solid var(--hc-border);
	font-size: 16px !important;
}

.hc-checkout .hc-summary__row--total dt {
	font-weight: 500 !important;
	font-size: 16px !important;
}
.hc-checkout .hc-summary__row--total dd {
	font-weight: 600 !important;
	font-size: 18px !important;
}

/* Coupon form */
.hc-checkout .hc-coupon-form {
	margin: 0;
	padding: 0;
}

/* The coupon section has two states that mirror the finance launcher:
   - "closed" (default): renders .hc-coupon-launcher, a button-styled
     card with icon + title + sub + CTA on the right.
   - "open" (after CTA click): hides the launcher and renders
     .hc-coupon-card, a row containing icon + input + Apply button.
   Both rows share the same 40px / 1fr / auto grid as
   .hc-finance-launcher and .hc-bumps__item, so the three optional
   add-on rows (bumps, finance, discount) read as one visual family. */
/* !important here defends against the `.hc-coupon-launcher` rule's
   `display: grid !important;` and any third-party CSS that might
   force one of these visible. Without it, the launcher's important
   display value would win and both rows would render. */
.hc-checkout .hc-coupon-form[data-hc-coupon-state="closed"] .hc-coupon-card { display: none !important; }
.hc-checkout .hc-coupon-form[data-hc-coupon-state="open"] .hc-coupon-launcher { display: none !important; }

/* ─── Closed-state launcher (matches .hc-finance-launcher) ─── */
.hc-checkout .hc-coupon-launcher {
	display: grid !important;
	grid-template-columns: 40px 1fr auto !important;
	gap: 12px;
	align-items: center;
	width: 100%;
	padding: 16px 20px;
	background: transparent !important;
	border: 1px solid var(--hc-border) !important;
	border-radius: var(--hc-radius-field) !important;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	color: var(--hc-text) !important;
	transition: border-color 0.15s ease;
	box-shadow: none !important;
	text-decoration: none !important;
	text-transform: none !important;
}
.hc-checkout .hc-coupon-launcher:hover,
.hc-checkout .hc-coupon-launcher:focus {
	background: transparent !important;
	color: var(--hc-text) !important;
	border-color: var(--hc-border-strong) !important;
}
.hc-checkout .hc-coupon-launcher:focus-visible {
	outline: 2px solid var(--hc-text);
	outline-offset: 2px;
}
.hc-checkout .hc-coupon-launcher:hover .hc-coupon-launcher__cta {
	background: var(--hc-bg-subtle) !important;
}

.hc-checkout .hc-coupon-launcher__icon {
	width: 40px;
	height: 40px;
	border-radius: var(--hc-radius-sm);
	background: var(--hc-bg-subtle);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--hc-text);
	flex-shrink: 0;
}

.hc-checkout .hc-coupon-launcher__details {
	display: flex;
	flex-direction: column;
	min-width: 0;
	/* Override <button>'s UA `white-space: pre` so the subtitle wraps
	   onto a new line on narrow viewports. */
	white-space: normal;
}

.hc-checkout .hc-coupon-launcher__name {
	font-size: 14px;
	font-weight: 500;
	color: var(--hc-text);
	line-height: 1.3;
}

.hc-checkout .hc-coupon-launcher__sub {
	font-size: 13px;
	color: var(--hc-text-muted);
	margin-top: 2px;
	line-height: 1.3;
}

.hc-checkout .hc-coupon-launcher__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	background: var(--hc-bg);
	border: 1px solid var(--hc-border-strong);
	border-radius: var(--hc-radius-sm);
	color: var(--hc-text);
	font-size: 13px;
	font-weight: 500;
	pointer-events: none; /* the whole button handles the click */
}

/* ─── Open-state input row ─── */
.hc-checkout .hc-coupon-card {
	display: grid;
	grid-template-columns: 40px 1fr auto;
	gap: 12px;
	align-items: center;
	width: 100%;
	/* Match the launcher's padding so the two states have identical
	   outer dimensions and the card doesn't visually shift size when
	   toggling between launcher and input. */
	padding: 16px 20px;
	background: transparent;
	border: 1px solid var(--hc-border);
	border-radius: var(--hc-radius-field);
	transition: border-color 0.15s ease;
}

.hc-checkout .hc-coupon-card:focus-within {
	border-color: var(--hc-border-strong);
}

.hc-checkout .hc-coupon-card__icon {
	width: 40px;
	height: 40px;
	border-radius: var(--hc-radius-sm);
	background: var(--hc-bg-subtle);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--hc-text);
	flex-shrink: 0;
}

/* The input is the middle column — drop its native border/padding so
   the surrounding card chrome carries the visual frame. */
.hc-checkout .hc-coupon-input {
	width: 100%;
	min-width: 0;
	border: none !important;
	background: transparent !important;
	padding: 8px 0 !important;
	margin: 0 !important;
	font-size: 14px !important;
	font-family: inherit;
	color: var(--hc-text) !important;
	box-shadow: none !important;
	outline: none !important;
	height: auto !important;
	min-height: 0 !important;
}
.hc-checkout .hc-coupon-input:focus {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

/* Apply button matches .hc-bumps__add so the call-to-action is
   visually identical across the three card rows. */
.hc-checkout .hc-coupon-apply {
	display: inline-flex !important;
	align-items: center;
	padding: 6px 12px !important;
	background: var(--hc-bg) !important;
	border: 1px solid var(--hc-border-strong) !important;
	border-radius: var(--hc-radius-sm) !important;
	color: var(--hc-text) !important;
	cursor: pointer;
	font-size: 13px !important;
	font-weight: 500 !important;
	font-family: inherit;
	transition: background 0.15s ease;
	width: auto !important;
	height: auto !important;
}
.hc-checkout .hc-coupon-apply:hover {
	background: var(--hc-bg-subtle) !important;
}

/* Wrap Apply + Cancel in a flex container so they share the third
   grid column without forcing us to a 4-column layout (which would
   crowd the input on mobile). */
.hc-checkout .hc-coupon-card__actions {
	display: flex;
	gap: 6px;
	align-items: center;
}

.hc-checkout .hc-coupon-cancel {
	width: 32px !important;
	height: 32px !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: transparent !important;
	border: 1px solid var(--hc-border) !important;
	border-radius: var(--hc-radius-sm) !important;
	color: var(--hc-text-muted) !important;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	flex-shrink: 0;
}
.hc-checkout .hc-coupon-cancel:hover {
	background: var(--hc-bg-subtle) !important;
	color: var(--hc-text) !important;
	border-color: var(--hc-border-strong) !important;
}

.hc-checkout .hc-coupon-form__message { margin-top: 8px; font-size: 13px; }
.hc-checkout .hc-coupon-form__message--error { color: var(--hc-error); }
.hc-checkout .hc-coupon-form__message--success { color: var(--hc-success); }

/* Order bumps */
.hc-checkout .hc-bumps {
	margin-top: 24px;
	padding: 20px;
	background: transparent;
	border-radius: var(--hc-radius-field);
	border: 1px solid var(--hc-border);
}

.hc-checkout .hc-bumps__title {
	font-size: 14px !important;
	font-weight: 600 !important;
	margin: 0 0 12px !important;
	color: var(--hc-text) !important;
}

.hc-checkout .hc-bumps__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hc-checkout .hc-bumps__item {
	display: grid !important;
	grid-template-columns: 40px 1fr auto !important;
	gap: 12px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--hc-border);
	list-style: none !important;
}
.hc-checkout .hc-bumps__item::before { display: none !important; }
.hc-checkout .hc-bumps__item:last-child { border-bottom: none; padding-bottom: 0; }
.hc-checkout .hc-bumps__item:first-child { padding-top: 0; }

.hc-checkout .hc-bumps__image img {
	width: 40px !important;
	height: 40px !important;
	max-width: none !important;
	border-radius: var(--hc-radius-sm);
	object-fit: cover;
	background: var(--hc-bg-subtle);
	display: block;
	margin: 0;
}

.hc-checkout .hc-bumps__name { font-size: 14px; font-weight: 500; }
.hc-checkout .hc-bumps__price { font-size: 13px; color: var(--hc-text-muted); margin-top: 2px; }

.hc-checkout .hc-bumps__add {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	padding: 6px 12px !important;
	background: var(--hc-bg) !important;
	border: 1px solid var(--hc-border-strong) !important;
	border-radius: var(--hc-radius-sm) !important;
	color: var(--hc-text) !important;
	cursor: pointer;
	font-size: 13px !important;
	font-weight: 500 !important;
	font-family: inherit;
	transition: all 0.15s ease;
	width: auto !important;
	height: auto !important;
}
.hc-checkout .hc-bumps__add:hover {
	background: var(--hc-bg-subtle) !important;
}
.hc-checkout .hc-bumps__add--added {
	background: var(--hc-success) !important;
	color: #fff !important;
	border-color: var(--hc-success) !important;
}

/* ═════════════════════════════════════════════════════════
   FORM - white card on right
   ═════════════════════════════════════════════════════════ */
.hc-checkout .hc-checkout__form-wrap {
	background: var(--hc-bg);
	border-radius: var(--hc-radius-card);
	padding: 32px;
	border: 1px solid var(--hc-border);
}

.hc-checkout .hc-form {
	background: transparent;
	padding: 0;
	margin: 0;
}

.hc-checkout .hc-form__heading {
	font-size: 20px !important;
	font-weight: 600 !important;
	margin: 0 0 20px !important;
	color: var(--hc-text) !important;
	letter-spacing: -0.01em;
}

.hc-checkout .hc-form__subheading {
	font-size: 14px !important;
	font-weight: 500 !important;
	margin: 24px 0 8px !important;
	color: var(--hc-text-muted) !important;
}

.hc-checkout .hc-form__section {
	margin-bottom: 32px;
}

.hc-checkout .hc-form__section:last-child {
	margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────
   FIELD GROUPS - connected fields with shared borders
   This is the signature Stripe styling
   ───────────────────────────────────────────────────────── */
.hc-checkout .hc-field-group {
	border: 1px solid var(--hc-border);
	border-radius: var(--hc-radius-field);
	overflow: hidden;
	margin-bottom: 12px;
	background: var(--hc-bg);
}

.hc-checkout .hc-field-group:focus-within {
	border-color: var(--hc-text);
	box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* All form rows inside a field group - no individual borders */
.hc-checkout .hc-field-group .form-row,
.hc-checkout .hc-field-group .hc-field {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	float: none !important;
	display: block !important;
	border: none !important;
	border-bottom: 1px solid var(--hc-border) !important;
	background: transparent !important;
	border-radius: 0 !important;
}

.hc-checkout .hc-field-group .form-row:last-child,
.hc-checkout .hc-field-group .hc-field:last-child {
	border-bottom: none !important;
}

/* Side-by-side first name + last name pair. Each half gets 50% width and
   floats. We use a self-clearing approach via the half-right field. */
.hc-checkout .hc-field-group .form-row.hc-field--half-left,
.hc-checkout .hc-field-group .hc-field.hc-field--half-left {
	width: 50% !important;
	float: left !important;
	border-right: 1px solid var(--hc-border) !important;
}

.hc-checkout .hc-field-group .form-row.hc-field--half-right,
.hc-checkout .hc-field-group .hc-field.hc-field--half-right {
	width: 50% !important;
	float: left !important;
}

/* The element after the half-right needs to clear the float */
.hc-checkout .hc-field-group .form-row.hc-field--half-right + *,
.hc-checkout .hc-field-group .hc-field.hc-field--half-right + * {
	clear: both;
}

/* When the address-fields below is collapsed, the autocomplete becomes
   the last visible item - kill its bottom border too. */
.hc-checkout .hc-address-group:has(> .hc-address-fields--collapsed) .hc-field--autocomplete {
	border-bottom: none !important;
}

/* Hide labels visually for stacked fields - use sr-only class */
.hc-checkout .hc-field-group label.hc-sr-only,
.hc-checkout .hc-field-group label.screen-reader-text,
.hc-checkout .hc-field-group .hc-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Hidden fields */
.hc-checkout .hc-form .form-row.hc-field--hidden,
.hc-checkout .hc-form .hc-field--hidden {
	display: none !important;
}

/* Inputs inside field groups - flat, no borders, fill the cell */
.hc-checkout .hc-field-group input[type="text"],
.hc-checkout .hc-field-group input[type="email"],
.hc-checkout .hc-field-group input[type="tel"],
.hc-checkout .hc-field-group input[type="password"],
.hc-checkout .hc-field-group input[type="number"],
.hc-checkout .hc-field-group input[type="search"],
.hc-checkout .hc-field-group input[type="url"],
.hc-checkout .hc-field-group select,
.hc-checkout .hc-field-group textarea {
	width: 100% !important;
	padding: 14px 14px !important;
	border: none !important;
	border-radius: 0 !important;
	font-size: 15px !important;
	background: transparent !important;
	font-family: inherit !important;
	color: var(--hc-text) !important;
	box-shadow: none !important;
	height: auto !important;
	line-height: 1.4 !important;
	margin: 0 !important;
	max-width: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.hc-checkout .hc-field-group input:focus,
.hc-checkout .hc-field-group select:focus,
.hc-checkout .hc-field-group textarea:focus {
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	position: relative;
	z-index: 2;
}

.hc-checkout .hc-field-group input::placeholder,
.hc-checkout .hc-field-group textarea::placeholder {
	color: var(--hc-text-light) !important;
	opacity: 1;
}

/* Select dropdown chevron */
.hc-checkout .hc-field-group select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b6b6b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 12px 8px !important;
	padding-right: 36px !important;
	cursor: pointer;
}

/* Select2 inside field groups - the closed/displayed state.
   Height comes from padding via Elementor controls, not a fixed value. */
.hc-checkout .hc-field-group .select2-container,
.hc-checkout .hc-field-group .select2-container--default {
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: var(--hc-text) !important;
	width: 100% !important;
}

.hc-checkout .hc-field-group .select2-container--default .select2-selection--single {
	height: auto !important;
	min-height: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	display: flex;
	align-items: center;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: var(--hc-text) !important;
}

.hc-checkout .hc-field-group .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 14px !important;
	color: var(--hc-text) !important;
	font-size: 15px !important;
	font-family: inherit !important;
	font-weight: 400 !important;
	font-style: normal !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	display: block;
	width: 100%;
}

/* Belt and braces - override any nested span the theme might style */
.hc-checkout .hc-field-group .select2-container--default .select2-selection--single .select2-selection__rendered * {
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	font-style: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
	letter-spacing: inherit !important;
	text-transform: none !important;
}

.hc-checkout .hc-field-group .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100% !important;
	top: 0 !important;
	right: 14px !important;
	display: flex;
	align-items: center;
}

/* Open Select2 dropdown - this lives outside the widget container as a child
   of <body>, so we target it globally. Resets theme-bleed (huge fonts, bold text). */
.select2-container--open .select2-dropdown {
	border: 1px solid #e5e5e7 !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
	margin-top: 4px;
	overflow: hidden;
}

.select2-container--open .select2-search--dropdown {
	padding: 8px !important;
	background: #fafafa !important;
	border-bottom: 1px solid #e5e5e7 !important;
}

.select2-container--open .select2-search--dropdown .select2-search__field {
	padding: 8px 12px !important;
	border: 1px solid #e5e5e7 !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	font-family: inherit !important;
	font-weight: 400 !important;
	color: #1a1a1a !important;
	background: #ffffff !important;
	box-shadow: none !important;
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.4 !important;
	width: 100% !important;
}

.select2-container--open .select2-search--dropdown .select2-search__field:focus {
	outline: none !important;
	border-color: #1a1a1a !important;
	box-shadow: 0 0 0 3px rgba(0,0,0,0.05) !important;
}

.select2-container--open .select2-results__options {
	max-height: 240px !important;
	font-family: inherit !important;
}

.select2-container--open .select2-results__option {
	padding: 10px 14px !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: #1a1a1a !important;
	line-height: 1.4 !important;
	font-family: inherit !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.select2-container--open .select2-results__option--highlighted[aria-selected],
.select2-container--open .select2-results__option--highlighted {
	background: #f0f0f3 !important;
	color: #1a1a1a !important;
}

.select2-container--open .select2-results__option[aria-selected="true"] {
	background: #1a1a1a !important;
	color: #ffffff !important;
	font-weight: 500 !important;
}

/* Address autocomplete inside field group */
.hc-checkout .hc-field-group .hc-address-autocomplete,
.hc-checkout .hc-field-group input.hc-address-autocomplete {
	width: 100% !important;
	padding: 14px !important;
	border: none !important;
	border-radius: 0 !important;
	font-size: 15px !important;
	font-family: inherit !important;
	background: transparent !important;
	color: var(--hc-text) !important;
	box-shadow: none !important;
	outline: none !important;
}

.hc-checkout .hc-field--autocomplete {
	display: block;
}

.hc-checkout .hc-address-manual-toggle {
	display: inline-block;
	margin: 4px 0 12px;
	background: none !important;
	border: none !important;
	color: var(--hc-text) !important;
	cursor: pointer;
	font-size: 13px !important;
	padding: 0 !important;
	text-decoration: underline;
	font-family: inherit;
	font-weight: 500;
}

/* Address fields - grid for city/postcode pairing.
   Sits inside .hc-field-group as a child container, NOT as its own group.
   When the autocomplete row above is hidden, these fields become the bottom
   half of the same connected card. */
.hc-checkout .hc-address-fields {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 0;
	/* No border-top - the row above (country selector or autocomplete) already
	   has a bottom border. Adding a top border here doubles up. */
}

/* MUST come after the grid rule to win the !important war.
   When this class is applied (initial state when autocomplete is active),
   the entire address fields container is hidden until a place is selected. */
.hc-checkout .hc-address-fields.hc-address-fields--collapsed,
.hc-checkout .hc-address-group .hc-address-fields--collapsed {
	display: none !important;
}

/* Hide autocomplete row + manual toggle once an address has been picked.
   These mirror the inline styles JS sets, so anything that would override
   the inline display still gets hidden by these rules. */
.hc-checkout .hc-field--autocomplete.hc-field--autocomplete-hidden {
	display: none !important;
}

.hc-checkout .hc-address-manual-toggle.hc-address-manual-toggle--hidden {
	display: none !important;
}

/* When the autocomplete row is hidden after a place is selected, no need
   for the top border (the row above already has bottom-border). */
.hc-checkout .hc-address-group:has(.hc-field--autocomplete[style*="display: none"]) .hc-address-fields,
.hc-checkout .hc-address-group:has(.hc-field--autocomplete[style*="display:none"]) .hc-address-fields {
	border-top: none;
}

.hc-checkout .hc-address-fields > .form-row,
.hc-checkout .hc-address-fields > .hc-field {
	grid-column: 1 / -1;
	border-bottom: 1px solid var(--hc-border) !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border-left: none !important;
	border-right: none !important;
	border-top: none !important;
	border-radius: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	clear: none !important;
}

.hc-checkout .hc-address-fields > .hc-field--full {
	grid-column: 1 / -1 !important;
}

.hc-checkout .hc-address-fields > .hc-field--half-left {
	grid-column: 1 / 2 !important;
	border-right: 1px solid var(--hc-border) !important;
}

.hc-checkout .hc-address-fields > .hc-field--half-right {
	grid-column: 2 / 3 !important;
}

/* Belt-and-braces: WC's country-change AJAX rebuilds the state field and
   can drop the custom hc-field--half-* classes from the wrapper. Match by
   WC's stable wrapper IDs so the city/state row stays paired even if the
   classes go missing after a country switch. */
.hc-checkout .hc-address-fields > #billing_city_field,
.hc-checkout .hc-address-fields > #shipping_city_field {
	grid-column: 1 / 2 !important;
	border-right: 1px solid var(--hc-border) !important;
}

.hc-checkout .hc-address-fields > #billing_state_field,
.hc-checkout .hc-address-fields > #shipping_state_field {
	grid-column: 2 / 3 !important;
}

/* WC wraps every checkout input in <span class="woocommerce-input-wrapper">.
   Spans are inline by default, which means width:100% on the inner input
   can fail to stretch the input across the grid cell - causing the visible
   gap on the left of the state field in city/state pairs. Force the wrapper
   to be a block-level container so its children fill it properly. */
.hc-checkout .hc-address-fields .woocommerce-input-wrapper,
.hc-checkout .hc-address-fields .form-row > .woocommerce-input-wrapper {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hc-checkout .hc-address-fields .woocommerce-input-wrapper input,
.hc-checkout .hc-address-fields .woocommerce-input-wrapper select {
	width: 100% !important;
	margin: 0 !important;
}

/* Last visible row in the entire group: remove bottom border to avoid
   doubling-up with the group's wrapping border. */
.hc-checkout .hc-address-fields > .hc-field:last-child,
.hc-checkout .hc-address-fields > .form-row:last-child {
	border-bottom: none !important;
}

/* Clear button injected into address line 1 when populated via autocomplete */
.hc-checkout .hc-field--has-clear {
	position: relative;
}

.hc-checkout .hc-address-clear {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none !important;
	border: none !important;
	color: var(--hc-text-muted) !important;
	font-size: 13px !important;
	font-family: inherit !important;
	font-weight: 500 !important;
	padding: 4px 8px !important;
	cursor: pointer;
	border-radius: var(--hc-radius-sm) !important;
	z-index: 5;
}

.hc-checkout .hc-address-clear:hover {
	color: var(--hc-text) !important;
	background: var(--hc-bg-subtle) !important;
}

.hc-checkout .hc-field--has-clear input {
	padding-right: 60px !important;
}

.pac-container {
	border: 1px solid var(--hc-border) !important;
	border-radius: var(--hc-radius-field) !important;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
	font-family: inherit !important;
	margin-top: 4px;
	z-index: 100000 !important;
}

/* ─────────────────────────────────────────────────────────
   Ideal Postcodes Address Finder
   ─────────────────────────────────────────────────────────
   The library is configured with `injectStyle: false`, so we provide
   all visual styling here. Class names match the library's API
   defaults: `mainClass` → `idpc_af`, `listClass` → `idpc_ul`,
   `messageClass` → `idpc_error`, `toolbarClass` → `idpc_toolbar`,
   `countryToggleClass` → `idpc_country`.

   Critical layout note: the library inserts `.idpc_af` (the
   suggestion dropdown wrapper) as a sibling of the input field, INSIDE
   our `.hc-field-group`. The group has `overflow: hidden` for
   rounded-corner clipping of its children — which also clips the
   dropdown. We override that to `visible` specifically when the IP
   provider is active so the dropdown can extend beyond the group's
   bottom edge. */

.hc-checkout .hc-shipping-form[data-hc-provider="ideal-postcodes"] .hc-field-group.hc-address-group {
	overflow: visible;
}

/* The dropdown wrapper. Positioned absolutely by the library via
   inline styles relative to the input's bounding rect — we only
   layer on visual properties here, not positioning. */
.idpc_af {
	background: #fff !important;
	border: 1px solid var(--hc-border) !important;
	border-radius: var(--hc-radius-field) !important;
	font-family: inherit !important;
	z-index: 100000 !important;
	overflow: hidden;
	margin-top: 4px;
}

/* Hide the dropdown when the library hasn't expanded it. The library
   wraps our input in its own container and renders the dropdown
   (`.idpc_af`) as a sibling of the input. On focus without typing,
   the input has `aria-expanded="false"` — the library is signalling
   "dropdown is not in an open/active state" — and we hide accordingly.
   Once the customer types, the library flips it to `aria-expanded="true"`
   and the dropdown becomes visible.

   Belt-and-braces: also hide when the dropdown has no list items at
   all, covering the brief moment between `aria-expanded="true"` and
   suggestions actually arriving from the API.
   `:has()` is supported in Chrome 105+, Safari 15.4+, Firefox 121+. */
.hc-address-autocomplete[aria-expanded="false"] ~ .idpc_af,
.idpc_af:not(:has(.idpc_ul li)) {
	display: none !important;
}

/* The suggestion list. */
.idpc_af .idpc_ul,
.idpc_ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	max-height: 320px;
	overflow-y: auto;
}

.idpc_af .idpc_ul li,
.idpc_ul li {
	padding: 10px 14px !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	color: var(--hc-text) !important;
	cursor: pointer;
	border: 0 !important;
	border-bottom: 1px solid var(--hc-border) !important;
	background: transparent;
	transition: background 0.12s ease;
}

.idpc_af .idpc_ul li:last-child,
.idpc_ul li:last-child {
	border-bottom: none !important;
}

.idpc_af .idpc_ul li:hover,
.idpc_af .idpc_ul li.idpc_selected,
.idpc_af .idpc_ul li.ui-state-focus,
.idpc_ul li:hover,
.idpc_ul li.idpc_selected,
.idpc_ul li.ui-state-focus {
	background: var(--hc-bg-subtle) !important;
}

/* Error / no-results / loading message. */
.idpc_af .idpc_error,
.idpc_error {
	padding: 12px 14px !important;
	font-size: 13px !important;
	color: var(--hc-text-muted) !important;
}

/* Country switcher toolbar — hidden because WC's country dropdown
   above the search box is the authoritative selector and the JS
   keeps them in sync. Showing both would be confusing. */
.idpc_af .idpc_toolbar,
.idpc_toolbar {
	display: none !important;
}

/* Defensive: if the library ever creates inline-positioned
   wrappers around our input, neutralise their borders and padding
   so the input continues to look like a normal field-group child. */
.hc-checkout .hc-shipping-form[data-hc-provider="ideal-postcodes"] .hc-address-autocomplete {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* ─────────────────────────────────────────────────────────
   Checkboxes
   ───────────────────────────────────────────────────────── */
.hc-checkout .hc-checkbox-label {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 14px !important;
	user-select: none;
	margin: 12px 0 !important;
	font-weight: 400 !important;
	color: var(--hc-text) !important;
	position: relative;
}

.hc-checkout .hc-checkbox-label input[type="checkbox"] {
	position: absolute !important;
	opacity: 0 !important;
	pointer-events: none !important;
	width: 0 !important;
	height: 0 !important;
}

.hc-checkout .hc-checkbox-control {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--hc-border-strong);
	border-radius: 4px;
	background: var(--hc-bg);
	flex-shrink: 0;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.hc-checkout .hc-checkbox-label input[type="checkbox"]:checked + .hc-checkbox-control {
	background: var(--hc-text);
	border-color: var(--hc-text);
}

.hc-checkout .hc-checkbox-label input[type="checkbox"]:checked + .hc-checkbox-control::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.hc-checkout .hc-business-toggle,
.hc-checkout .hc-shipping-toggle { margin: 8px 0; }

/* Different-shipping address section - shows when checkbox is on.
   The slideDown/slideUp animation in checkout.js controls visibility. */
.hc-checkout .hc-different-shipping {
	margin-top: 8px;
}

.hc-checkout .hc-different-shipping .hc-form__subheading {
	margin-top: 16px !important;
}

.hc-checkout .hc-shipping-address-group {
	margin-top: 8px;
}

.hc-checkout .hc-business-fields { margin-top: 8px; }
.hc-checkout .hc-business-fields[hidden] { display: none !important; }

/* VAT information heading with info button */
.hc-checkout .hc-vat-heading {
	display: flex !important;
	align-items: center;
	gap: 6px;
	margin: 16px 0 8px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: var(--hc-text-muted) !important;
}

.hc-checkout .hc-vat-info-btn {
	background: none !important;
	border: none !important;
	padding: 0 !important;
	cursor: help;
	color: var(--hc-text-muted) !important;
	display: inline-flex;
	align-items: center;
	border-radius: 50%;
	width: 16px;
	height: 16px;
}

.hc-checkout .hc-vat-info-btn:hover {
	color: var(--hc-text) !important;
}

/* Tooltip popover triggered by the info button */
.hc-checkout .hc-tooltip-popover {
	position: relative;
	display: inline-block;
	background: var(--hc-text);
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	padding: 10px 12px;
	border-radius: 6px;
	margin: 4px 0 8px;
	max-width: 320px;
}

.hc-checkout .hc-tooltip-popover::before {
	content: '';
	position: absolute;
	top: -5px;
	left: 12px;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 5px solid var(--hc-text);
}

/* VAT field group */
.hc-checkout .hc-vat-group {
	margin-bottom: 0;
}

/* VAT country select - flag is rendered inline in the option text */
.hc-checkout .hc-vat-country-field {
	position: relative;
}

.hc-checkout .hc-vat-country-display {
	display: block;
	width: 100%;
}

.hc-checkout .hc-vat-country-select {
	width: 100% !important;
	background: transparent !important;
	cursor: pointer;
	-webkit-appearance: none;
	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' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b6b6b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 12px 8px !important;
	padding-right: 36px !important;
	font-size: 15px !important;
	font-family: inherit !important;
	color: var(--hc-text) !important;
}

/* For consistency with the rest of our flag use */
.hc-checkout .hc-vat-flag {
	display: inline-flex;
	align-items: center;
	font-size: 16px;
	line-height: 1;
}

/* VAT number input */
.hc-checkout .hc-vat-number-field {
	position: relative;
}

.hc-checkout .hc-vat-validation {
	font-size: 12px;
	padding: 6px 14px;
	color: var(--hc-text-muted);
}

.hc-checkout .hc-vat-validation:empty {
	display: none;
}

.hc-checkout .hc-vat-validation--valid {
	color: var(--hc-success) !important;
}

.hc-checkout .hc-vat-validation--invalid {
	color: var(--hc-error) !important;
}

.hc-checkout .hc-vat-input--valid {
	color: var(--hc-success) !important;
}

.hc-checkout .hc-vat-input--invalid {
	color: var(--hc-error) !important;
}

/* ─────────────────────────────────────────────────────────
   Express payments
   ───────────────────────────────────────────────────────── */
.hc-checkout .hc-express-payments { margin-bottom: 24px; }
.hc-checkout .hc-express-payments:empty { display: none; }

.hc-checkout .hc-express-payments__divider {
	display: flex;
	align-items: center;
	margin: 20px 0;
	color: var(--hc-text-muted);
	font-size: 12px;
	font-weight: 500;
}

.hc-checkout .hc-express-payments__divider::before,
.hc-checkout .hc-express-payments__divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--hc-border);
}

.hc-checkout .hc-express-payments__divider span { padding: 0 12px; }

.hc-checkout .hc-express-payments > .hc-express-payments__divider:only-child {
	display: none;
}

/* ─────────────────────────────────────────────────────────
   Shipping methods
   ───────────────────────────────────────────────────────── */
.hc-checkout .hc-shipping-methods { display: block; margin-top: 0; }

.hc-checkout .hc-shipping-method {
	display: grid !important;
	grid-template-columns: auto 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 14px 16px !important;
	border: 1px solid var(--hc-border) !important;
	border-radius: var(--hc-radius-field) !important;
	margin-bottom: 8px !important;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
	background: var(--hc-bg) !important;
	position: relative;
}

.hc-checkout .hc-shipping-method:hover {
	border-color: var(--hc-border-strong) !important;
}

.hc-checkout .hc-shipping-method--selected {
	border-color: var(--hc-text) !important;
	background: var(--hc-bg-subtle) !important;
}

.hc-checkout .hc-shipping-method__radio {
	position: absolute !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.hc-checkout .hc-shipping-method__indicator {
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--hc-border-strong);
	border-radius: 50%;
	flex-shrink: 0;
	position: relative;
	transition: border-color 0.15s ease;
}

.hc-checkout .hc-shipping-method--selected .hc-shipping-method__indicator {
	border-color: var(--hc-text);
}

.hc-checkout .hc-shipping-method--selected .hc-shipping-method__indicator::after {
	content: '';
	position: absolute;
	inset: 3px;
	background: var(--hc-text);
	border-radius: 50%;
}

.hc-checkout .hc-shipping-method__details { min-width: 0; }
.hc-checkout .hc-shipping-method__label {
	font-size: 14px;
	font-weight: 500;
	display: block;
	color: var(--hc-text);
}
.hc-checkout .hc-shipping-method__description {
	font-size: 12px;
	color: var(--hc-text-muted);
	display: block;
	margin-top: 2px;
}
.hc-checkout .hc-shipping-method__cost {
	font-size: 14px;
	font-weight: 500;
	color: var(--hc-text);
	white-space: nowrap;
}

.hc-checkout .hc-shipping-methods__empty {
	padding: 16px !important;
	background: var(--hc-bg-subtle) !important;
	border-radius: var(--hc-radius-field);
	color: var(--hc-text-muted);
	font-size: 13px !important;
	margin: 0 !important;
}

/* ─────────────────────────────────────────────────────────
   PAYMENT METHODS - connected list like Stripe
   
   WC structure has radio + label as siblings inside the li:
   <li>
     <input type="radio" />
     <label for="...">Method name</label>
     <div class="payment_box">...</div>
   </li>
   
   So we make the li a flex container with radio/label inline,
   and let the payment_box break to its own row.
   ───────────────────────────────────────────────────────── */
.hc-checkout .hc-payment-methods .wc_payment_methods,
.hc-checkout .hc-payment-methods ul.payment_methods {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 1px solid var(--hc-border) !important;
	border-radius: var(--hc-radius-field) !important;
	overflow: hidden;
}

/* Catch all <li> children including the woocommerce-notice fallback when
   no gateways are available - kills the default disc bullet. */
.hc-checkout .hc-payment-methods .wc_payment_methods > li,
.hc-checkout .hc-payment-methods ul.payment_methods > li {
	list-style: none !important;
}

.hc-checkout .hc-payment-methods .wc_payment_methods > li::marker,
.hc-checkout .hc-payment-methods ul.payment_methods > li::marker {
	content: none !important;
}

/* Each payment method row - flex container holding radio + label inline,
   with payment_box wrapping below as a full-width row. */
.hc-checkout .hc-payment-methods .wc_payment_method,
.hc-checkout .hc-payment-methods li[class*="payment_method_"] {
	border: none !important;
	border-bottom: 1px solid var(--hc-border) !important;
	border-radius: 0 !important;
	margin: 0 !important;
	background: var(--hc-bg) !important;
	padding: 0 !important;
	list-style: none !important;
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
}

.hc-checkout .hc-payment-methods .wc_payment_method:last-child,
.hc-checkout .hc-payment-methods li[class*="payment_method_"]:last-child {
	border-bottom: none !important;
}

.hc-checkout .hc-payment-methods .wc_payment_method::before,
.hc-checkout .hc-payment-methods li[class*="payment_method_"]::before {
	display: none !important;
}

/* Radio sits directly inside the li - inline next to label */
.hc-checkout .hc-payment-methods .wc_payment_method > input[type="radio"],
.hc-checkout .hc-payment-methods li[class*="payment_method_"] > input[type="radio"] {
	margin: 0 0 0 16px !important;
	width: 18px !important;
	height: 18px !important;
	flex-shrink: 0 !important;
	display: inline-block !important;
	vertical-align: middle !important;
	accent-color: var(--hc-text);
	position: static !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	order: 1;
}

/* Label - takes remaining space inline with radio */
.hc-checkout .hc-payment-methods .wc_payment_method > label,
.hc-checkout .hc-payment-methods li[class*="payment_method_"] > label {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	padding: 16px !important;
	cursor: pointer;
	font-weight: 500 !important;
	font-size: 14px !important;
	margin: 0 !important;
	color: var(--hc-text) !important;
	flex: 1 1 auto !important;
	min-width: 0;
	flex-wrap: nowrap !important;
	order: 2;
	line-height: 1.4 !important;
}

/* Payment method icons inline with label text */
.hc-checkout .hc-payment-methods .wc_payment_method > label img,
.hc-checkout .hc-payment-methods li[class*="payment_method_"] > label img {
	max-height: 22px !important;
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	display: inline-block !important;
	vertical-align: middle;
}

/* Inline SVG payment method icons - editor preview & live where injected */
.hc-checkout .hc-pm-icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.hc-checkout .hc-pm-icon svg {
	display: block;
}

/* Card brand logos appear after the label text */
.hc-checkout .hc-pm-brands {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	flex-shrink: 0;
}

.hc-checkout .hc-pm-brands svg {
	display: block;
	flex-shrink: 0;
}

/* Payment box (the description/extra fields shown when method is selected) -
   forced to wrap to its own row by giving it 100% width */
.hc-checkout .hc-payment-methods .payment_box {
	padding: 14px 16px 16px 14px !important;
	background: var(--hc-bg-subtle) !important;
	border-top: 1px solid var(--hc-border);
	font-size: 13px !important;
	margin: 0 !important;
	color: var(--hc-text-muted) !important;
	flex: 0 0 100% !important;
	width: 100% !important;
	order: 3;
}

.hc-checkout .hc-payment-methods .payment_box::before { display: none !important; }
.hc-checkout .hc-payment-methods .payment_box p:last-child { margin-bottom: 0; }
.hc-checkout .hc-payment-methods .payment_box p { margin: 0; }

/* ─────────────────────────────────────────────────────────
   Trust badges
   ───────────────────────────────────────────────────────── */
.hc-checkout .hc-trust-badges {
	display: flex !important;
	flex-wrap: wrap;
	gap: 16px;
	margin: 24px 0 16px;
	padding: 12px 0;
	border-top: 1px solid var(--hc-border);
	border-bottom: 1px solid var(--hc-border);
	justify-content: center;
}

.hc-checkout .hc-trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--hc-text-muted);
	font-weight: 500;
}

.hc-checkout .hc-trust-badge svg {
	width: 14px;
	height: 14px;
	color: var(--hc-success);
	flex-shrink: 0;
}

/* Font Awesome icons rendered by Elementor's Icons_Manager come through
   as <i class="fas fa-lock"></i> and size via font-size, not width/height.
   Constrain them so they match the inline SVG icons above. */
.hc-checkout .hc-trust-badge i {
	font-size: 14px;
	line-height: 1;
	color: var(--hc-success);
	flex-shrink: 0;
	width: auto;
	height: auto;
}

/* ─────────────────────────────────────────────────────────
   Privacy + place order
   ───────────────────────────────────────────────────────── */
.hc-checkout .woocommerce-privacy-policy-text {
	margin: 16px 0;
	font-size: 12px;
	color: var(--hc-text-muted);
	line-height: 1.5;
}

.hc-checkout .woocommerce-privacy-policy-text p {
	margin: 0;
	color: inherit;
	font-size: inherit;
}

.hc-checkout .woocommerce-privacy-policy-text a {
	color: var(--hc-text);
	text-decoration: underline;
}

.hc-checkout .hc-place-order { margin-top: 16px; }

.hc-checkout .hc-place-order__button,
.hc-checkout button#place_order {
	width: 100% !important;
	padding: 16px 20px !important;
	background: var(--hc-text) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--hc-radius-field) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	cursor: pointer;
	font-family: inherit !important;
	transition: background 0.15s ease;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: auto !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.hc-checkout .hc-place-order__button:hover { background: #000 !important; }
.hc-checkout .hc-place-order__button:disabled { opacity: 0.7; cursor: wait; }

.hc-checkout .hc-place-order__spinner {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255,255,255,0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hc-spin 0.6s linear infinite;
}

/* Processing state - hide label, show spinner + "Processing..." text. */
.hc-checkout .hc-place-order__button.processing {
	cursor: wait;
	pointer-events: none;
}

.hc-checkout .hc-place-order__processing-text {
	display: none;
	margin-left: 8px;
}

.hc-checkout .hc-place-order__button.processing .hc-place-order__label {
	display: none;
}

.hc-checkout .hc-place-order__button.processing .hc-place-order__spinner {
	display: inline-block;
}

.hc-checkout .hc-place-order__button.processing .hc-place-order__processing-text {
	display: inline;
}

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

/* ─────────────────────────────────────────────────────────
   Loading states
   ───────────────────────────────────────────────────────── */

/* Summary refresh state - inline spinner next to the total amount,
   plus subtle dim on the totals so it's obvious they're being recalculated. */
.hc-checkout .hc-summary.hc-loading--summary {
	pointer-events: none;
}

/* Spinner sits to the right of the headline price - inline so it doesn't
   break the block layout. The headline itself stays block-level. */
.hc-checkout .hc-summary__total-headline {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hc-checkout .hc-summary.hc-loading--summary .hc-summary__total-headline::after {
	content: '';
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid var(--hc-border);
	border-top-color: var(--hc-text);
	border-radius: 50%;
	animation: hc-spin 0.6s linear infinite;
	flex-shrink: 0;
	opacity: 0.8;
}

/* Subtle dim on the totals rows while recalculating - tells the user
   the numbers below are about to change. */
.hc-checkout .hc-summary.hc-loading--summary .hc-summary__totals {
	opacity: 0.5;
	transition: opacity 0.15s ease;
}

.hc-checkout .hc-summary.hc-loading--summary .hc-summary__items {
	opacity: 0.7;
	transition: opacity 0.15s ease;
}

/* Element-level loading - dim and disable interactions */
.hc-checkout .hc-loading--element {
	opacity: 0.6;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* Cart item being modified */
.hc-checkout .hc-summary__item.hc-loading--element {
	opacity: 0.5;
}

/* Button-style elements get an inline spinner */
.hc-checkout .hc-bumps__add.hc-loading--element,
.hc-checkout .hc-coupon-apply.hc-loading--element,
.hc-checkout .hc-coupon-remove.hc-loading--element {
	position: relative;
	color: transparent !important;
}

.hc-checkout .hc-bumps__add.hc-loading--element svg,
.hc-checkout .hc-bumps__add.hc-loading--element span {
	visibility: hidden;
}

.hc-checkout .hc-bumps__add.hc-loading--element::after,
.hc-checkout .hc-coupon-apply.hc-loading--element::after,
.hc-checkout .hc-coupon-remove.hc-loading--element::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: hc-spin 0.6s linear infinite;
	color: var(--hc-text);
	opacity: 0.6;
}

/* Shipping method selection loading - mute the indicator */
.hc-checkout .hc-shipping-method.hc-loading--element {
	opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────
   Order notes
   ───────────────────────────────────────────────────────── */
.hc-checkout .hc-order-notes {
	margin-top: 16px;
}

.hc-checkout .hc-order-notes__details {
	display: block;
}

.hc-checkout .hc-order-notes__summary {
	cursor: pointer;
	font-size: 13px;
	color: var(--hc-text);
	user-select: none;
	font-weight: 500;
	list-style: none;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.hc-checkout .hc-order-notes__summary::-webkit-details-marker {
	display: none;
}

.hc-checkout .hc-order-notes__summary::marker {
	content: '';
}

.hc-checkout .hc-order-notes__summary::before {
	content: '+';
	display: inline-block;
	width: 14px;
	text-align: center;
	font-size: 14px;
	color: var(--hc-text-muted);
}

.hc-checkout .hc-order-notes__details[open] .hc-order-notes__summary::before {
	content: '−';
}

.hc-checkout .hc-order-notes__content {
	margin-top: 12px;
}

/* Textarea inside the order notes field group - taller than a normal input */
.hc-checkout .hc-order-notes textarea {
	min-height: 96px !important;
	resize: vertical;
	line-height: 1.5 !important;
}

/* WooCommerce notices */
.hc-checkout .woocommerce-NoticeGroup,
.hc-checkout .woocommerce-error,
.hc-checkout .woocommerce-message,
.hc-checkout .woocommerce-info {
	margin: 0 0 16px !important;
	padding: 14px 16px !important;
	border-radius: var(--hc-radius-field) !important;
	font-size: 14px !important;
	list-style: none !important;
	line-height: 1.5;
}

.hc-checkout .woocommerce-error {
	background: rgba(217,48,37,0.08) !important;
	color: var(--hc-error) !important;
	border: 1px solid rgba(217,48,37,0.2) !important;
	display: block;
	position: relative;
	padding-left: 44px !important;
}

/* Error icon - rendered via CSS to avoid touching WC markup */
.hc-checkout .woocommerce-error::before {
	content: '';
	position: absolute;
	left: 14px;
	top: 14px;
	width: 20px;
	height: 20px;
	background-color: var(--hc-error);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z' clip-rule='evenodd'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z' clip-rule='evenodd'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

/* Multi-error list - WC renders these as nested <li>. Reset them to clean rows. */
.hc-checkout .woocommerce-error li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hc-checkout .woocommerce-error li + li {
	margin-top: 6px !important;
	padding-top: 6px !important;
	border-top: 1px solid rgba(217,48,37,0.15) !important;
}

.hc-checkout .woocommerce-error a {
	color: var(--hc-error) !important;
	text-decoration: underline;
}

.hc-checkout .woocommerce-message {
	background: rgba(10,124,62,0.08) !important;
	color: var(--hc-success) !important;
	border: 1px solid rgba(10,124,62,0.2) !important;
}

.hc-checkout .woocommerce-info {
	background: rgba(0,113,235,0.06) !important;
	color: #0066cc !important;
	border: 1px solid rgba(0,113,235,0.2) !important;
}

/* Auto-scroll-into-view target when errors appear via AJAX */
.hc-checkout .woocommerce-NoticeGroup-checkout,
.hc-checkout .woocommerce-NoticeGroup-updateOrderReview {
	scroll-margin-top: 24px;
}

/* ═════════════════════════════════════════════════════════
   Order Received page
   ═════════════════════════════════════════════════════════ */

.hc-order-received {
	--hc-text: #1a1a1a;
	--hc-text-muted: #6b6b6b;
	--hc-text-light: #a0a0a0;
	--hc-bg: #ffffff;
	--hc-bg-subtle: #fafafa;
	--hc-border: #e5e5e7;
	--hc-success: #0a7c3e;
	--hc-warning: #b8860b;
	--hc-error: #d93025;
	--hc-radius-card: 12px;
	--hc-radius-sm: 6px;

	box-sizing: border-box;
	max-width: 900px;
	margin: 0 auto;
	padding: 32px 24px;
	color: var(--hc-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

.hc-order-received *,
.hc-order-received *::before,
.hc-order-received *::after {
	box-sizing: border-box;
}

/* Header section with status icon */
.hc-order-received__header {
	text-align: center;
	margin-bottom: 24px;
	padding: 16px 0 8px;
}

.hc-order-received__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.hc-order-received--success .hc-order-received__icon {
	color: var(--hc-success);
}

.hc-order-received--pending .hc-order-received__icon {
	color: var(--hc-warning);
}

.hc-order-received--failed .hc-order-received__icon {
	color: var(--hc-error);
}

.hc-order-received__title {
	font-size: 26px !important;
	font-weight: 600 !important;
	letter-spacing: -0.02em !important;
	color: var(--hc-text) !important;
	margin: 0 0 6px !important;
	line-height: 1.2 !important;
}

.hc-order-received__message {
	font-size: 15px !important;
	color: var(--hc-text-muted) !important;
	margin: 0 !important;
}

/* Meta strip with order number, date, total, payment */
.hc-order-received__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0;
	background: var(--hc-bg);
	border: 1px solid var(--hc-border);
	border-radius: var(--hc-radius-card);
	padding: 24px;
	margin-bottom: 16px;
}

.hc-order-meta__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 4px 16px;
	border-right: 1px solid var(--hc-border);
}

.hc-order-meta__item:last-child {
	border-right: none;
}

@media (max-width: 600px) {
	.hc-order-received__meta {
		grid-template-columns: 1fr 1fr;
		padding: 14px 8px;
	}
	.hc-order-meta__item {
		padding: 12px 12px;
		min-width: 0;
		/* Remove the right border on every odd-indexed item (the rightmost
		   in each row of two) so we don't get a stray vertical line at the
		   end of each row. */
		border-right: 1px solid var(--hc-border);
		border-bottom: 1px solid var(--hc-border);
	}
	/* Right column: no right border (it's the edge of the grid). */
	.hc-order-meta__item:nth-child(2n) {
		border-right: none;
	}
	/* Bottom row: no bottom border. nth-last-child(-n+2) catches the last
	   two items, which form the bottom row in a 2-column grid. */
	.hc-order-meta__item:nth-last-child(-n+2) {
		border-bottom: none;
	}
	.hc-order-meta__label {
		font-size: 10px !important;
		letter-spacing: 0.03em;
	}
	.hc-order-meta__value {
		font-size: 13px !important;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.hc-order-meta__value--total {
		font-size: 14px !important;
	}
}

.hc-order-meta__label {
	font-size: 12px;
	color: var(--hc-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 500;
}

.hc-order-meta__value {
	font-size: 15px;
	font-weight: 500;
	color: var(--hc-text);
}

.hc-order-meta__value--total {
	font-size: 18px;
	font-weight: 600;
}

/* Email confirmation note */
.hc-order-received__email-note {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--hc-bg-subtle);
	border: 1px solid var(--hc-border);
	border-radius: var(--hc-radius-card);
	font-size: 14px;
	color: var(--hc-text-muted);
	margin-bottom: 24px;
}

.hc-order-received__email-note svg {
	color: var(--hc-text-muted);
	flex-shrink: 0;
}

.hc-order-received__email-note strong {
	color: var(--hc-text);
	font-weight: 500;
}

/* Two-column layout for summary + details */
.hc-order-received__columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	margin-bottom: 32px;
}

@media (max-width: 768px) {
	.hc-order-received__columns {
		grid-template-columns: 1fr;
	}
}

/* On mobile, reorder so the map comes between summary and details.
   Default DOM order: header -> meta -> email -> map -> columns -> actions.
   On mobile we want: header -> meta -> email -> summary -> map -> details -> actions.

   To achieve that, on mobile only:
   - The columns container collapses (already happens via single-column grid)
   - The map drops below the summary by reordering as a flex child
   This requires turning .hc-order-received into a flex column so order works. */
@media (max-width: 768px) {
	.hc-order-received {
		display: flex;
		flex-direction: column;
	}
	.hc-order-received__header { order: 1; }
	.hc-order-received__meta { order: 2; }
	.hc-order-received__email-note { order: 3; }
	.hc-order-received__columns { order: 5; display: contents; }
	.hc-order-received__summary-wrap { order: 4; margin-bottom: 16px; }
	.hc-order-received__map { order: 5; }
	.hc-order-received__details-wrap { order: 6; }
	.hc-order-received__actions { order: 7; }
}

/* Single column layout (configurable per widget) */
.hc-order-received--layout-single .hc-order-received__columns {
	grid-template-columns: 1fr;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hc-order-received__summary-wrap {
	min-width: 0;
}

.hc-order-received__details-wrap {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Order section card */
.hc-order-section {
	background: var(--hc-bg);
	border: 1px solid var(--hc-border);
	border-radius: var(--hc-radius-card);
	padding: 24px;
}

.hc-order-section__title {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: var(--hc-text-muted) !important;
	margin: 0 0 16px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.hc-order-section__sub {
	font-size: 13px;
	color: var(--hc-text-muted);
	margin-top: 8px;
	line-height: 1.5;
}

.hc-order-section__sub-label {
	color: var(--hc-text-muted);
	display: inline-block;
	margin-right: 4px;
}

/* Order items list */
.hc-order-items {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hc-order-item {
	display: grid !important;
	grid-template-columns: 56px 1fr auto !important;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--hc-border);
	align-items: start;
	list-style: none !important;
}

.hc-order-item::before {
	display: none !important;
}

.hc-order-item:first-child {
	padding-top: 0;
}

.hc-order-item__image {
	width: 56px;
	height: 56px;
	border-radius: var(--hc-radius-sm);
	overflow: hidden;
	background: var(--hc-bg-subtle);
}

.hc-order-item__image img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
	margin: 0 !important;
}

.hc-order-item__details {
	min-width: 0;
}

.hc-order-item__name {
	font-size: 14px;
	font-weight: 500;
	color: var(--hc-text);
	line-height: 1.4;
	margin-bottom: 4px;
}

.hc-order-item__qty {
	font-size: 12px;
	color: var(--hc-text-muted);
}

.hc-order-item__meta {
	font-size: 12px;
	color: var(--hc-text-muted);
	margin-top: 4px;
}

.hc-order-item__meta p {
	margin: 0;
}

.hc-order-item__price {
	text-align: right;
	font-size: 14px;
	font-weight: 500;
	color: var(--hc-text);
	white-space: nowrap;
}

/* Order totals */
.hc-order-totals {
	margin: 16px 0 0 !important;
	padding: 16px 0 0 !important;
	display: block;
	border-top: 1px solid var(--hc-border);
}

.hc-order-totals__row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	padding: 4px 0;
	font-size: 14px;
	margin: 0 !important;
}

.hc-order-totals__row dt,
.hc-order-totals__row dd {
	margin: 0 !important;
	padding: 0 !important;
	font-weight: 400;
	color: var(--hc-text);
}

.hc-order-totals__row--total {
	margin-top: 12px !important;
	padding-top: 12px !important;
	border-top: 1px solid var(--hc-border);
	font-size: 16px !important;
}

.hc-order-totals__row--total dt {
	font-weight: 500 !important;
}

.hc-order-totals__row--total dd {
	font-weight: 600 !important;
	font-size: 18px !important;
}

/* Address blocks */
.hc-order-address {
	font-style: normal;
	font-size: 14px;
	line-height: 1.6;
	color: var(--hc-text);
	margin: 0;
}

.hc-order-note {
	font-size: 14px;
	color: var(--hc-text);
	line-height: 1.5;
	margin: 0;
	padding: 12px;
	background: var(--hc-bg-subtle);
	border-radius: var(--hc-radius-sm);
}

/* Action buttons */
.hc-order-received__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 32px;
}

.hc-order-received .hc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid var(--hc-border);
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
	background: var(--hc-bg);
	color: var(--hc-text) !important;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.hc-order-received .hc-button:hover {
	border-color: var(--hc-text);
}

.hc-order-received .hc-button--primary {
	background: var(--hc-text);
	color: #fff !important;
	border-color: var(--hc-text);
}

.hc-order-received .hc-button--primary:hover {
	background: #000;
	color: #fff !important;
}

/* Hide WC's default order received content when ours is rendered */
.hc-order-received ~ .woocommerce-order-overview,
.hc-order-received ~ .woocommerce-order-details,
.hc-order-received ~ .woocommerce-customer-details,
.woocommerce-order-received .woocommerce-thankyou-order-received,
.woocommerce-order-received .woocommerce-order-overview,
.woocommerce-order-received .woocommerce-order-details:not(.hc-order-section),
.woocommerce-order-received .woocommerce-customer-details {
	display: none !important;
}

/* ─────────────────────────────────────────────────────────
   Apple Maps - delivery map on order received page
   ───────────────────────────────────────────────────────── */

/* Full-width map container sitting below the confirmation message.
   Position relative so the overlay can absolute-position against it
   on desktop (and flow as a sibling on mobile). */
.hc-order-received__map {
	position: relative;
	margin-bottom: 16px;
}

.hc-order-received .hc-map {
	position: relative;
	width: 100%;
	height: 340px;
	border-radius: var(--hc-radius-card);
	overflow: hidden;
	background: var(--hc-bg-subtle);
	border: 1px solid var(--hc-border);
}

/* On smaller screens, shorter map since the overlay drops below it. */
@media (max-width: 600px) {
	.hc-order-received .hc-map {
		height: 220px;
		/* Connect visually with the overlay below by removing bottom radius. */
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
		border-bottom: none;
	}
}

/* Loading placeholder shown until MapKit renders */
.hc-order-received .hc-map__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--hc-text-light);
	pointer-events: none;
}

.hc-order-received .hc-map--ready .hc-map__placeholder {
	display: none;
}

/* If the address can't be geocoded, hide the map entirely so we don't
   show an empty box. */
.hc-order-received .hc-map--unavailable {
	display: none;
}

/* MapKit injects its own canvas - make sure it fills the container */
.hc-order-received .hc-map > .mk-map-view,
.hc-order-received .hc-map > div[role="region"] {
	width: 100% !important;
	height: 100% !important;
}

/* Floating shipping address card overlaying the map, bottom-left.
   On mobile it drops below the map as an attached card so the map
   stays visible and the address gets natural breathing room. */
.hc-order-received .hc-map__overlay {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 5;
	max-width: 280px;
	background: var(--hc-bg);
	border-radius: var(--hc-radius-sm);
	padding: 14px 16px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
	pointer-events: auto;
}

.hc-order-received .hc-map__overlay-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--hc-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
}

.hc-order-received .hc-map__overlay-address {
	font-style: normal;
	font-size: 14px;
	line-height: 1.5;
	color: var(--hc-text);
	margin: 0;
}

.hc-order-received .hc-map__overlay-method {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--hc-text-muted);
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--hc-border);
}

.hc-order-received .hc-map__overlay-method svg {
	flex-shrink: 0;
}

/* On mobile - drop the overlay below the map as a connected card */
@media (max-width: 600px) {
	.hc-order-received .hc-map__overlay {
		position: static;
		max-width: none;
		box-shadow: none;
		border-radius: 0 0 var(--hc-radius-card) var(--hc-radius-card);
		border: 1px solid var(--hc-border);
		border-top: none;
		padding: 14px 16px;
	}
}

/* ─────────────────────────────────────────────────────────
   Order confetti
   canvas-confetti creates its own canvas. We just ensure it
   sits above everything and doesn't block clicks.
   ───────────────────────────────────────────────────────── */
canvas.confetti-canvas {
	position: fixed !important;
	inset: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	pointer-events: none !important;
	z-index: 99999 !important;
}

/* ─────────────────────────────────────────────────────────
   intl-tel-input integration
   The library wraps the input in its own div and injects a flag
   dropdown to the left. We override its defaults to match our
   flat field-group styling.
   ───────────────────────────────────────────────────────── */
.hc-checkout .iti {
	width: 100%;
	display: block;
}

.hc-checkout .iti__tel-input,
.hc-checkout .hc-field-group--phone .iti input.iti__tel-input {
	padding-left: 56px !important;
	border: none !important;
	background: transparent !important;
	width: 100% !important;
	font-size: inherit;
	font-family: inherit;
}

.hc-checkout .iti__country-list {
	font-family: inherit;
	border-radius: var(--hc-radius-sm) !important;
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	border: 1px solid var(--hc-border) !important;
}

.hc-checkout .iti__country.iti__highlight {
	background-color: rgba(0,0,0,0.04) !important;
}

.hc-checkout .iti__selected-flag {
	padding: 0 8px 0 14px !important;
	background: transparent !important;
}

.hc-checkout .iti__selected-flag:focus,
.hc-checkout .iti__selected-flag[aria-expanded="true"] {
	background: rgba(0,0,0,0.04) !important;
}

/* Invalid number styling - subtle red underline */
.hc-checkout .hc-field-group--phone:has(.iti__tel-input.iti__error) {
	border-color: var(--hc-error);
}

/* Hide express payments section when no buttons were injected */
.hc-checkout .hc-express-payments.hc-express-payments--empty {
	display: none !important;
}

/* ─────────────────────────────────────────────────────────
   Accessibility: skip link
   Hidden visually until focused via keyboard - lets screen
   reader / keyboard users jump straight to Place Order.
   ───────────────────────────────────────────────────────── */
.hc-checkout .hc-skip-link {
	position: absolute;
	left: -10000px;
	top: 0;
	padding: 12px 16px;
	background: var(--hc-text);
	color: #fff !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	border-radius: var(--hc-radius-sm);
	z-index: 9999;
}

.hc-checkout .hc-skip-link:focus {
	left: 12px;
	top: 12px;
	outline: 2px solid var(--hc-text);
	outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────
   Toast notices
   Bottom-right slide-in for AJAX errors that don't justify
   the full WC error notice card (e.g. bump add failed).
   ───────────────────────────────────────────────────────── */
.hc-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	max-width: 360px;
	padding: 12px 16px;
	background: #1a1a1a;
	color: #fff;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	z-index: 99999;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

.hc-toast--visible {
	opacity: 1;
	transform: translateY(0);
}

.hc-toast--error {
	background: #d93025;
}

.hc-toast--success {
	background: #0a7c3e;
}

@media (max-width: 600px) {
	.hc-toast {
		left: 12px;
		right: 12px;
		bottom: 12px;
		max-width: none;
	}
}

/* ─────────────────────────────────────────────────────────
   Finance calculator slot.
   Hosts third-party finance widgets (Novuna PayByFinance etc).
   The .cart_totals decoy is hidden but acts as the injection
   target for Novuna's remote script.
   ───────────────────────────────────────────────────────── */
.hc-checkout .hc-finance-slot {
	margin: 24px 0;
}

.hc-checkout .hc-finance-slot > .cart_totals {
	display: none;
}

/* ─────────────────────────────────────────────────────────
   Editor preview only - mock finance calculator card.
   Mirrors the order bump styling so it reads as native
   Helios UI, not a third-party block.
   ───────────────────────────────────────────────────────── */
.hc-checkout .hc-finance-mockup {
	margin-top: 24px;
	padding: 20px;
	background: transparent;
	border-radius: var(--hc-radius-field);
	border: 1px solid var(--hc-border);
}

.hc-checkout .hc-finance-mockup__item {
	display: grid !important;
	grid-template-columns: 40px 1fr auto !important;
	gap: 12px;
	align-items: center;
}

.hc-checkout .hc-finance-mockup__icon {
	width: 40px;
	height: 40px;
	border-radius: var(--hc-radius-sm);
	background: var(--hc-bg-subtle);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--hc-text);
}

.hc-checkout .hc-finance-mockup__name {
	font-size: 14px;
	font-weight: 500;
	color: var(--hc-text);
}

.hc-checkout .hc-finance-mockup__sub {
	font-size: 13px;
	color: var(--hc-text-muted);
	margin-top: 2px;
}

.hc-checkout .hc-finance-mockup__cta {
	display: inline-flex !important;
	align-items: center;
	padding: 6px 12px !important;
	background: var(--hc-bg) !important;
	border: 1px solid var(--hc-border-strong) !important;
	border-radius: var(--hc-radius-sm) !important;
	color: var(--hc-text) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	font-family: inherit;
	cursor: not-allowed;
}

/* ─────────────────────────────────────────────────────────
   Finance launcher card + modal.
   The launcher mirrors the order bump pattern: icon | text | button.
   The modal hosts the third-party calculator (Novuna PayByFinance)
   without the user leaving the checkout.
   ───────────────────────────────────────────────────────── */

.hc-checkout .hc-finance-launcher {
	display: grid !important;
	grid-template-columns: 40px 1fr auto !important;
	gap: 12px;
	align-items: center;
	width: 100%;
	margin-top: 24px;
	padding: 16px 20px;
	background: var(--hc-bg) !important;
	border: 1px solid var(--hc-border) !important;
	border-radius: var(--hc-radius-field) !important;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	color: var(--hc-text) !important;
	transition: border-color 0.15s ease;
	box-shadow: none !important;
	text-decoration: none !important;
	text-transform: none !important;
}

.hc-checkout .hc-finance-launcher:hover,
.hc-checkout .hc-finance-launcher:focus,
.hc-checkout .hc-finance-launcher:active {
	background: var(--hc-bg) !important;
	color: var(--hc-text) !important;
	border-color: var(--hc-border-strong) !important;
}

/* Only change the inner CTA button on hover - not the whole card. */
.hc-checkout .hc-finance-launcher:hover .hc-finance-launcher__cta {
	background: var(--hc-bg-subtle) !important;
}

.hc-checkout .hc-finance-launcher:focus-visible {
	outline: 2px solid var(--hc-text);
	outline-offset: 2px;
}

.hc-checkout .hc-finance-launcher__icon {
	width: 40px;
	height: 40px;
	border-radius: var(--hc-radius-sm);
	background: var(--hc-bg-subtle);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--hc-text);
	flex-shrink: 0;
}

.hc-checkout .hc-finance-launcher__details {
	display: flex;
	flex-direction: column;
	min-width: 0;
	/* Override <button>'s UA `white-space: pre` so the subtitle wraps
	   onto a new line on narrow viewports instead of overflowing
	   horizontally and rendering behind the Calculate button. */
	white-space: normal;
}

.hc-checkout .hc-finance-launcher__name {
	font-size: 14px;
	font-weight: 500;
	color: var(--hc-text);
	line-height: 1.3;
}

.hc-checkout .hc-finance-launcher__sub {
	font-size: 13px;
	color: var(--hc-text-muted);
	margin-top: 2px;
	line-height: 1.3;
}

.hc-checkout .hc-finance-launcher__cta {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	background: var(--hc-bg);
	border: 1px solid var(--hc-border-strong);
	border-radius: var(--hc-radius-sm);
	color: var(--hc-text);
	font-size: 13px;
	font-weight: 500;
	pointer-events: none; /* button itself handles the click */
}

/* Hide #PBFPopup when it lives in our slot but isn't in the modal */
.hc-finance-widget--hidden,
.hc-finance-injection-target {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0,0,0,0) !important;
	border: 0 !important;
}

/* Modal */
.hc-finance-modal[hidden] { display: none !important; }

.hc-finance-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.hc-finance-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.hc-finance-modal__dialog {
	position: relative;
	background: var(--hc-bg);
	border-radius: var(--hc-radius-card);
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.hc-finance-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--hc-border);
	flex-shrink: 0;
}

.hc-finance-modal__title {
	font-size: 16px !important;
	font-weight: 600 !important;
	margin: 0 !important;
	color: var(--hc-text) !important;
}

.hc-finance-modal__close {
	background: transparent;
	border: none;
	padding: 4px;
	color: var(--hc-text-muted);
	cursor: pointer;
	border-radius: var(--hc-radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hc-finance-modal__close:hover {
	background: var(--hc-bg-subtle);
	color: var(--hc-text);
}

.hc-finance-modal__body {
	padding: 20px;
	overflow-y: auto;
	flex: 1 1 auto;
}

/* Inside the modal, let Novuna's widget show normally - the global
   colour overrides applied via custom CSS handle the theming. */
.hc-finance-modal__body .hc-finance-widget--hidden {
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	clip: auto !important;
	border: 0 !important;
}

.hc-finance-modal__body #PBFPopup {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	width: 100% !important;
	max-width: none !important;
}

body.hc-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.hc-finance-modal {
		padding: 0;
		align-items: stretch;
	}
	.hc-finance-modal__dialog {
		max-width: none;
		max-height: 100vh;
		border-radius: 0;
	}
}

/* Modal logo replaces the text title */
.hc-finance-modal__logo {
	display: block;
	height: 22px;
	width: auto;
	max-width: 200px;
}

/* Applied state — finance has been added, launcher acts as remove */
.hc-checkout .hc-finance-launcher--applied {
	border-color: var(--hc-success) !important;
	background: rgba(10, 124, 62, 0.04) !important;
}

.hc-checkout .hc-finance-launcher--applied .hc-finance-launcher__icon {
	background: rgba(10, 124, 62, 0.1);
	color: var(--hc-success);
}

.hc-checkout .hc-finance-launcher--applied .hc-finance-launcher__name::after {
	content: " \2713";
	color: var(--hc-success);
	font-weight: 600;
}

.hc-checkout .hc-finance-launcher--applied .hc-finance-launcher__cta {
	color: var(--hc-text);
	border-color: var(--hc-border);
}

/* Hide Novuna's logo inside the modal — we show it in the header instead */
.hc-finance-modal__body #pbf-widget-logo {
	display: none !important;
}

/* Modal-only Novuna tweaks */
.hc-finance-modal img.hc-finance-modal__logo {
	max-width: 200px !important;
	margin-top: 10px !important;
}

.hc-finance-modal__body .pbf-representative-example {
	display: none !important;
}

.hc-finance-modal__body div#pbf-finance-avail-from {
	display: none !important;
}

.hc-finance-modal__body .pbf-finance-widget-button {
	width: 100% !important;
}

/* ─────────────────────────────────────────────────────────
   Addon rows in the summary totals.
   Third-party plugins (Novuna PayByFinance) hook into
   woocommerce_review_order_after_order_total to add rows below
   the total. summary.php buffers their output and rewrites
   <tr><th>/<td> markup into .hc-summary__row--addon.
   ───────────────────────────────────────────────────────── */
.hc-checkout .hc-summary__row--addon {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 13px;
	color: var(--hc-text-muted);
	padding: 4px 0 0;
	margin: 0;
}

.hc-checkout .hc-summary__row--addon:first-of-type {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px dashed var(--hc-border);
}

.hc-checkout .hc-summary__row--addon dt {
	font-weight: 500;
	color: var(--hc-text-muted);
}

.hc-checkout .hc-summary__row--addon dd {
	font-weight: 600;
	color: var(--hc-text);
	margin: 0;
}

.hc-checkout .hc-summary__row--addon dd .woocommerce-Price-amount {
	background: transparent !important;
	padding: 0 !important;
}

/* Finance slot heading — matches other form section headings */
.hc-checkout .hc-finance-slot__heading {
	font-size: 20px !important;
	font-weight: 600 !important;
	margin: 24px 0 12px !important;
	color: var(--hc-text) !important;
	letter-spacing: -0.01em;
}

.hc-checkout .hc-finance-slot__heading[hidden] {
	display: none !important;
}

/* When heading is visible, kill the launcher's top margin so spacing
   reads as one block */
.hc-checkout .hc-finance-slot__heading:not([hidden]) + .hc-finance-launcher {
	margin-top: 0 !important;
}

/* ─────────────────────────────────────────────────────────
   Address Validation modal
   ─────────────────────────────────────────────────────────
   Shown when Google's Address Validation API returns either a
   suggested correction or a low-confidence verdict. Renders on
   <body> outside the checkout wrapper so it lives above everything
   and isn't constrained by the form's overflow. */
.hc-addr-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: inherit;
}

.hc-addr-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.hc-addr-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	max-width: 480px;
	width: 100%;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}

.hc-addr-modal__title {
	font-size: 18px !important;
	font-weight: 600 !important;
	margin: 0 0 16px !important;
	color: #1a1a1a;
	line-height: 1.3;
}

.hc-addr-modal__compare {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 24px;
}

.hc-addr-modal__option {
	padding: 12px 16px;
	border: 1px solid #e5e5e7;
	border-radius: 8px;
	background: #fff;
}

.hc-addr-modal__option--suggested {
	border-color: #0a7c3e;
	background: rgba(10, 124, 62, 0.04);
}

.hc-addr-modal__label {
	font-size: 12px;
	color: #6b6b6b;
	margin-bottom: 4px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hc-addr-modal__address {
	font-size: 14px;
	color: #1a1a1a;
	line-height: 1.4;
}

.hc-addr-modal__message {
	font-size: 14px;
	color: #6b6b6b;
	margin: 0 0 24px;
	line-height: 1.5;
}

.hc-addr-modal__actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.hc-addr-modal__btn {
	padding: 10px 16px;
	border: 1px solid #d4d4d8;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	color: #1a1a1a;
	transition: background 0.15s ease, border-color 0.15s ease;
	min-height: 40px;
}

.hc-addr-modal__btn:hover {
	background: #f5f5f7;
	border-color: #6b6b6b;
}

.hc-addr-modal__btn--primary {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}

.hc-addr-modal__btn--primary:hover {
	background: #000;
	color: #fff;
	border-color: #000;
}

/* Lock body scroll while modal is open */
body.hc-addr-modal-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.hc-addr-modal__actions {
		flex-direction: column-reverse;
	}
	.hc-addr-modal__btn {
		width: 100%;
	}
}

