/**
 * Hosterwise — WooCommerce pages, design v2 (12/10/2026): cart, checkout,
 * order received, order pay, customer area (light canvas: hw_use_light_canvas()
 * + .hw-sheet, templates/wc-page.php) and the plan pages (dark, sections 9–10).
 * Tokens & components: main.css (STYLEGUIDE.md). No hex colours here except
 * the receipt notches (= --hw-light-bg) and data-URI icon masks.
 *
 *  1. Frame: dark hero, progress steps, reassurance chips, sheet, notices, fields
 *  2. Checkout (toggles, blocks, fields, existing customer)
 *  3. Receipt (order summary & cart totals: lines, totals, recurring, savings,
 *     period select, reassurance)
 *  4. Payment (Stripe), terms, place order
 *  5. Cart (lines, coupon, upsells, domain step, empty cart)
 *  6. Login / lost password
 *  7. Customer area (sidebar, console dashboard, tables, subscription & order
 *     pages, addresses, account form)
 *  8. Order received
 *  9. Plan page (dark)
 * 10. Plan switching
 * 11. Small screens, motion, print
 */

/* =========================================================================
 * 1. Frame
 * ====================================================================== */

.hw-wc {
	--hw-wc-card-radius: var(--hw-radius-lg);
	--hw-wc-card-pad: clamp(1.25rem, 0.95rem + 1.2vw, 2rem);
	--hw-wc-notch: var(--hw-light-bg);
}

.hw-wc input::placeholder,
.hw-wc textarea::placeholder {
	color: var(--hw-light-faint);
	opacity: 1;
}

/* Dark islands in the light canvas keep the night state colours (main.css .hw-dark does not reset them). */
.hw-wc .hw-dark {
	--hw-success-text: #86e4a8;
	--hw-warning-text: #f2d38a;
	--hw-danger-text: #ffb3be;
	--hw-info-text: #a9ccff;
	--hw-violet-text: #b9a8ff;
}

/* Dark hero (an .hw-dark island in the light canvas). */
.hw-wc-hero {
	background:
		radial-gradient(900px 420px at 88% -10%, rgba(1, 200, 239, 0.16), transparent 70%),
		radial-gradient(760px 380px at 8% 0%, rgba(243, 53, 91, 0.14), transparent 70%),
		var(--hw-bg);
	padding-block: clamp(1.75rem, 1.2rem + 2vw, 3rem) calc(clamp(2rem, 1.4rem + 2.5vw, 3.5rem) + clamp(24px, 4vw, 48px));
}

.hw-wc-hero__grid {
	display: grid;
	gap: clamp(1.25rem, 0.8rem + 2vw, 3rem);
	align-items: end;
}

@media (min-width: 960px) {
	.hw-wc-hero__grid { grid-template-columns: minmax(0, 1fr) auto; }

	.hw-wc-hero--visual .hw-wc-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: center; }
}

.hw-wc-hero__title {
	margin: 0;
	font-size: clamp(2rem, 1.45rem + 2.4vw, 3.375rem);
	line-height: 1.05;
	letter-spacing: -0.04em;
	background: var(--hw-gradient-title);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-wrap: balance;
}

.hw-wc--account .hw-wc-hero__title { font-size: clamp(1.875rem, 1.4rem + 2vw, 3rem); }

.hw-wc-hero__intro {
	max-width: 60ch;
	margin: 0.85rem 0 0;
	font-size: var(--hw-fs-md);
	color: var(--hw-text-muted);
}

.hw-wc-hero__eyebrow { margin-bottom: var(--hw-space-4); }

.hw-wc-hero__actions { margin-top: var(--hw-space-5) !important; }

.hw-wc-hero__actions .hw-btn .hw-icon { --hw-icon-size: 1.05em; }

.hw-wc-hero__visual { position: relative; }

.hw-wc-hero__render { --hw-illus-max: 320px; }

@media (max-width: 959.98px) {
	.hw-wc-hero__visual { display: none; }
}

/* Progress steps: a segmented pill. */
.hw-wc-steps {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 2px;
	max-width: 100%;
	margin: 0 0 var(--hw-space-5);
	padding: 4px;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius-pill);
	background: rgba(255, 255, 255, 0.04);
	box-shadow: var(--hw-inner-hl);
	list-style: none;
	font-size: var(--hw-fs-xs);
	font-weight: 600;
	color: var(--hw-text-faint);
}

.hw-wc-steps__item {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
	padding: 0.35rem 0.95rem 0.35rem 0.4rem;
	border-radius: var(--hw-radius-pill);
	white-space: nowrap;
}

.hw-wc-steps__item:not(:last-child)::after {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	margin-left: 0.45rem;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.45;
}

.hw-wc-steps__num {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 1.6rem;
	height: 1.6rem;
	border: 1px solid var(--hw-border);
	border-radius: 50%;
	font-variant-numeric: tabular-nums;
	font-weight: 750;
}

.hw-wc-steps__num .hw-icon { --hw-icon-size: 0.85rem; width: 0.85rem; height: 0.85rem; }

.hw-wc-steps__item.is-done { color: var(--hw-text-muted); }

.hw-wc-steps__item.is-done .hw-wc-steps__num {
	border-color: rgba(1, 200, 239, 0.45);
	background: var(--hw-cyan-soft);
	color: var(--hw-cyan-bright);
}

.hw-wc-steps__item.is-current {
	background: rgba(255, 255, 255, 0.08);
	color: var(--hw-text);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hw-wc-steps__item.is-current:not(.is-done) .hw-wc-steps__num {
	border-color: transparent;
	background: var(--hw-gradient-cta);
	color: #fff;
	box-shadow: 0 6px 18px -6px rgba(243, 53, 91, 0.8);
}

/* Reassurance chips (cart, checkout, order pay). */
.hw-wc-hero__trust {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hw-wc-hero__trust li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 1rem 0.55rem 0.6rem;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius-pill);
	background: var(--hw-glass);
	box-shadow: var(--hw-inner-hl);
	font-size: var(--hw-fs-xs);
	font-weight: 600;
	color: var(--hw-text);
	white-space: nowrap;
}

.hw-wc-hero__trust .hw-icon {
	--hw-icon-size: 1rem;
	box-sizing: content-box;
	padding: 0.35rem;
	border-radius: 50%;
	background: var(--hw-cyan-soft);
	color: var(--hw-cyan-bright);
}

@media (max-width: 959.98px) {
	.hw-wc-hero__trust { display: flex; flex-wrap: wrap; }
}

@media (max-width: 639.98px) {
	.hw-wc-hero__trust { display: none; }

	.hw-wc-steps__item:not(.is-current) .hw-wc-steps__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.hw-wc-steps__item:not(.is-current) { padding-right: 0.4rem; }
}

/* Focus ring readable on the light sheet (the night cyan is ~1.9:1 on white); dark islands keep it. */
.hw-wc__sheet { --hw-focus: var(--hw-light-cyan); }

.hw-wc__sheet .hw-dark { --hw-focus: var(--hw-cyan-bright); }

/* Light sheet holding the WooCommerce content. */
.hw-wc__sheet {
	overflow-x: clip; /* Stripe's off-screen style probe input must not widen the page. */
	padding-top: clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
	min-height: 50vh;
}

/* Notices (light canvas): icon + tinted card. */
.hw-wc .woocommerce-message,
.hw-wc .woocommerce-info,
.hw-wc .woocommerce-error {
	position: relative;
	padding: 0.95rem 1.15rem 0.95rem 3.1rem;
	border: 1px solid rgba(29, 95, 184, 0.22);
	border-radius: var(--hw-radius);
	background: #f1f6ff;
	box-shadow: var(--hw-light-shadow-sm);
	color: var(--hw-text);
	line-height: 1.55;
}

.hw-wc .woocommerce-message { border-color: rgba(21, 122, 60, 0.25); background: #effaf3; }

.hw-wc .woocommerce-error { border-color: rgba(180, 24, 58, 0.25); background: #fff3f5; }

.hw-wc .woocommerce-message::before,
.hw-wc .woocommerce-info::before,
.hw-wc .woocommerce-error::before {
	content: "";
	position: absolute;
	display: block;
	top: 0.95rem;
	left: 1.05rem;
	width: 1.3rem;
	height: 1.3rem;
	background: var(--hw-info-text);
	-webkit-mask: var(--hw-wc-mask-info) center / contain no-repeat;
	mask: var(--hw-wc-mask-info) center / contain no-repeat;
}

.hw-wc .woocommerce-message::before {
	background: var(--hw-success-text);
	-webkit-mask-image: var(--hw-wc-mask-ok);
	mask-image: var(--hw-wc-mask-ok);
}

.hw-wc .woocommerce-error::before {
	background: var(--hw-danger-text);
	-webkit-mask-image: var(--hw-wc-mask-warn);
	mask-image: var(--hw-wc-mask-warn);
}

.hw-wc {
	--hw-wc-mask-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M12 11v5.5M12 7.6v.1'/%3E%3C/svg%3E");
	--hw-wc-mask-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='m8 12.3 2.7 2.7L16 9.6'/%3E%3C/svg%3E");
	--hw-wc-mask-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 2.4 17.6A2 2 0 0 0 4.1 20.6h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4.5M12 17v.1'/%3E%3C/svg%3E");
	--hw-wc-mask-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
	--hw-wc-mask-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c1.2-3.6 4-5.5 7.5-5.5s6.3 1.9 7.5 5.5'/%3E%3C/svg%3E");
	--hw-wc-mask-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.6V4.5a1 1 0 0 1 1-1h8.1l7.9 7.9a1.5 1.5 0 0 1 0 2.1l-6.9 6.9a1.5 1.5 0 0 1-2.1 0z'/%3E%3Ccircle cx='8.2' cy='8.2' r='1.4'/%3E%3C/svg%3E");
}

.hw-wc .woocommerce-error li + li { margin-top: 0.35em; }

/* WooCommerce focuses its notices region for screen readers: no focus ring on a non-interactive block. */
.hw-wc :is(.woocommerce-notices-wrapper, .woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-NoticeGroup)[tabindex="-1"]:focus,
.hw-wc .woocommerce-notices-wrapper :focus:not(a, button, input) { outline: none; box-shadow: var(--hw-light-shadow-sm); }

.hw-wc .woocommerce-message a:not(.button),
.hw-wc .woocommerce-info a:not(.button),
.hw-wc .woocommerce-error a:not(.button) {
	color: var(--hw-link);
	font-weight: 650;
	text-underline-offset: 3px;
}

/* Buttons inside notices: solid ink (the generic `.hw-wc a.button` rule below forces white text,
   so a white button here was invisible — e.g. the empty orders notice). */
.hw-wc :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button {
	border: 1px solid var(--hw-light-text);
	background: var(--hw-light-text);
	color: #fff;
	box-shadow: none;
}

.hw-wc :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button:hover {
	border-color: var(--hw-light-muted);
	background: var(--hw-light-muted);
	color: #fff;
	box-shadow: none;
}

/* WooCommerce fields on the light canvas. */
.hw-wc .woocommerce form .form-row label,
.hw-wc form .form-row label { color: var(--hw-text); }

.hw-wc .woocommerce form .form-row .required { color: var(--hw-light-accent); }

.woocommerce form .form-row .description {
	margin: 2px 0 0;
	font-size: var(--hw-fs-xs);
	color: var(--hw-text-muted);
}

.hw-wc .woocommerce form .form-row input.input-text,
.hw-wc .woocommerce form .form-row textarea,
.hw-wc .woocommerce form .form-row select,
.hw-wc .woocommerce .select2-container .select2-selection--single {
	border-color: var(--hw-light-border-strong);
	background-color: #fff;
	box-shadow: 0 1px 2px rgba(11, 13, 46, 0.04);
	transition: border-color var(--hw-dur-fast) var(--hw-ease), box-shadow var(--hw-dur-fast) var(--hw-ease);
}

.hw-wc .woocommerce form .form-row input.input-text:hover,
.hw-wc .woocommerce form .form-row select:hover,
.hw-wc .woocommerce .select2-container .select2-selection--single:hover { border-color: #aeb6cf; }

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid .select2-selection {
	border-color: var(--hw-danger-text) !important;
	box-shadow: 0 0 0 3px rgba(180, 24, 58, 0.1);
}

.woocommerce form .form-row .woocommerce-input-wrapper { display: block; }

.woocommerce form .form-row .checkout-inline-error-message,
.woocommerce form .form-row .woocommerce-error-message {
	margin: 4px 0 0;
	color: var(--hw-danger-text);
	font-size: var(--hw-fs-xs);
	font-weight: 600;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Light select2 dropdown (attached to <body>) on shop pages. */
body.woocommerce-checkout .select2-dropdown,
body.woocommerce-account .select2-dropdown,
body.woocommerce-cart .select2-dropdown {
	border-color: var(--hw-light-border-strong) !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: var(--hw-light-text);
	box-shadow: var(--hw-light-shadow-lg);
	overflow: hidden;
}

body.woocommerce-checkout .select2-search--dropdown .select2-search__field,
body.woocommerce-account .select2-search--dropdown .select2-search__field {
	border-color: var(--hw-light-border-strong) !important;
	border-radius: 10px;
	background: #fff;
	color: var(--hw-light-text);
}

body.woocommerce-checkout .select2-results__option--highlighted[aria-selected],
body.woocommerce-account .select2-results__option--highlighted[aria-selected] {
	background: var(--hw-light-text) !important;
	color: #fff;
}

.select2-container .select2-selection--single {
	display: flex;
	align-items: center;
	height: auto;
}

.select2-container .select2-selection--single .select2-selection__arrow { height: 24px; }

.hw-wc .select2-container .select2-selection--single .select2-selection__rendered { color: var(--hw-text); }

/* Buttons keep their own colours (links are recoloured on the light canvas). */
.hw-wc a.hw-btn--primary,
.hw-wc .button.alt,
.hw-wc a.button:not(.hw-btn--ghost):not(.hw-btn--secondary):not(.view):not(.cancel) { color: #fff; }

.hw-wc .woocommerce .blockUI.blockOverlay { background: rgba(244, 246, 252, 0.65) !important; }

.hw-wc .hw-badge--cyan {
	border-color: rgba(0, 116, 163, 0.3);
	background: rgba(0, 116, 163, 0.08);
	color: var(--hw-light-cyan);
}

/* Shared card look. */
.hw-wc-card,
.hw-checkout__block,
.hw-dash__card,
.hw-kpi,
.hw-login__main,
.woocommerce-cart-form,
.woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-customer-details address {
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-wc-card-radius);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-sm);
}

/* =========================================================================
 * 2. Checkout
 * ====================================================================== */

.hw-checkout-login-anchor { scroll-margin-top: calc(var(--hw-header-h) + 16px); }

/* "Déjà client ?" / "Code promo ?" toggles: slim bars side by side. */
.woocommerce-checkout .woocommerce:has(> .woocommerce-form-login-toggle) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 0.75rem;
}

@media (min-width: 760px) {
	.woocommerce-checkout .woocommerce:has(> .woocommerce-form-login-toggle):has(> .woocommerce-form-coupon-toggle) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

	.woocommerce-checkout .woocommerce > :not(.woocommerce-form-login-toggle):not(.woocommerce-form-coupon-toggle) { grid-column: 1 / -1; }
}

.woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-form-coupon-toggle .woocommerce-info {
	margin: 0 0 0.75rem !important;
	padding: 0.8rem 1.1rem 0.8rem 3rem !important;
	border: 1px solid var(--hw-border) !important;
	background: var(--hw-surface) !important;
	font-size: var(--hw-fs-sm);
	color: var(--hw-text-muted) !important;
}

.woocommerce-form-login-toggle .woocommerce-info::before,
.woocommerce-form-coupon-toggle .woocommerce-info::before {
	top: 50% !important;
	transform: translateY(-50%);
	background: var(--hw-text) !important;
	-webkit-mask-image: var(--hw-wc-mask-user) !important;
	mask-image: var(--hw-wc-mask-user) !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info::before {
	-webkit-mask-image: var(--hw-wc-mask-tag) !important;
	mask-image: var(--hw-wc-mask-tag) !important;
}

.woocommerce-checkout .woocommerce-form-login,
.woocommerce-checkout .checkout_coupon {
	max-width: 760px;
	margin: 0 0 1.25rem;
	padding: var(--hw-wc-card-pad);
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-wc-card-radius);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow);
}

.woocommerce-checkout .woocommerce-form-login > p:first-child {
	margin-top: 0;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-sm);
}

.woocommerce-checkout .woocommerce-form-login .form-row-first,
.woocommerce-checkout .woocommerce-form-login .form-row-last { display: grid; }

.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem;
}

.checkout_coupon > p:first-child {
	flex-basis: 100%;
	margin: 0;
	font-size: var(--hw-fs-sm);
	color: var(--hw-text-muted);
}

.checkout_coupon .form-row { margin: 0 !important; }

.checkout_coupon .form-row-first { flex: 1 1 220px; }

.hw-checkout__grid {
	display: grid;
	gap: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
	align-items: start;
}

@media (min-width: 1000px) {
	.hw-checkout__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); }
}

.hw-checkout__main {
	display: grid;
	gap: 1.25rem;
	min-width: 0;
}

.hw-checkout__block {
	position: relative;
	padding: var(--hw-wc-card-pad);
}

.hw-checkout__title,
.hw-checkout__summary-title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-xl);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--hw-text);
}

.hw-checkout__step {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 11px;
	background: var(--hw-light-text);
	color: #fff;
	font-size: var(--hw-fs-sm);
	font-weight: 800;
	box-shadow: 0 8px 18px -10px rgba(11, 13, 46, 0.7);
}

.hw-checkout__hint {
	margin: -0.6rem 0 1.25rem;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-sm);
}

.hw-checkout .woocommerce-billing-fields > h3,
.hw-checkout .woocommerce-shipping-fields:empty,
.hw-checkout .woocommerce-additional-fields:empty,
.hw-checkout .woocommerce-additional-fields > h3 { display: none; }

.hw-checkout__shipping:not(:has(input, select, textarea)) { display: none; }

.hw-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper,
.woocommerce-EditAccountForm {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1rem;
}

.hw-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
.woocommerce-address-fields__field-wrapper > .form-row {
	grid-column: 1 / -1;
	width: auto;
	float: none;
	margin-bottom: 1.05rem;
}

.hw-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
.woocommerce-address-fields__field-wrapper > .form-row-first { grid-column: 1; }

.hw-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
.woocommerce-address-fields__field-wrapper > .form-row-last { grid-column: 2; }

.hw-checkout .form-row[hidden],
.woocommerce-address-fields .form-row[hidden] { display: none !important; }

/* Existing customer notice under the e-mail field. */
.hw-existing {
	grid-column: 1 / -1;
	margin: -0.25rem 0 1.1rem;
	padding: 1rem 1.15rem;
	border: 1px solid rgba(29, 95, 184, 0.22);
	border-left: 4px solid var(--hw-info-text);
	border-radius: 12px;
	background: #f1f6ff;
	color: var(--hw-text);
	font-size: var(--hw-fs-sm);
}

.hw-existing__text { margin: 0 0 0.75rem; }

.hw-existing__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 0.9rem;
	margin: 0;
}

.hw-existing__lost { font-weight: 650; }

/* =========================================================================
 * 3. Receipt — checkout summary & cart totals
 * ====================================================================== */

.hw-checkout__aside { min-width: 0; }

.hw-receipt,
.cart_totals {
	position: relative;
	padding: var(--hw-wc-card-pad);
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius-xl);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-lg);
}

/* Brand hairline on top of the receipt. */
.hw-receipt::before,
.cart_totals::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 12%;
	right: 12%;
	height: 3px;
	border-radius: 0 0 4px 4px;
	background: var(--hw-gradient-brand);
}

@media (min-width: 1000px) {
	.hw-checkout__summary,
	.woocommerce-cart .cart-collaterals .cart_totals {
		position: sticky;
		top: calc(var(--hw-header-h) + 20px);
	}
}

.hw-receipt__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.hw-receipt__head .hw-checkout__summary-title { margin: 0; }

.hw-receipt__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.6rem;
	border-radius: var(--hw-radius-pill);
	background: var(--hw-success-bg);
	color: var(--hw-success-text);
	font-size: var(--hw-fs-2xs);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.hw-receipt__badge .hw-icon { --hw-icon-size: 0.85rem; }

.hw-checkout__summary-title,
.cart_totals > h2 {
	margin: 0 0 0.75rem;
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-lg);
	letter-spacing: -0.02em;
}

.woocommerce-checkout-review-order-table,
.hw-checkout .shop_table,
.cart_totals .shop_table {
	width: 100%;
	border: 0 !important;
	border-radius: 0 !important;
	border-collapse: collapse !important;
	background: none !important;
	font-size: var(--hw-fs-sm);
	overflow: visible !important;
}

.woocommerce-checkout-review-order-table thead { display: none; }

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td,
.cart_totals .shop_table th,
.cart_totals .shop_table td {
	padding: 0.7rem 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--hw-border-soft) !important;
	background: none;
	vertical-align: top;
}

.woocommerce-checkout-review-order-table td:last-child,
.woocommerce-checkout-review-order-table tfoot td,
.cart_totals .shop_table td {
	padding-left: 1rem !important;
	text-align: right !important;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.woocommerce-checkout-review-order-table .cart_item td { padding-block: 0.9rem !important; }

.woocommerce-checkout-review-order-table .product-name {
	padding-right: 1rem !important;
	font-weight: 700;
	color: var(--hw-text);
	white-space: normal;
}

.woocommerce-checkout-review-order-table .product-name dl.variation,
.woocommerce-checkout-review-order-table .product-name .wc-item-meta {
	margin: 0.3rem 0 0;
	font-weight: 500;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-xs);
}

.woocommerce-checkout-review-order-table .product-name dl.variation dt,
.woocommerce-checkout-review-order-table .product-name dl.variation dd,
.woocommerce-checkout-review-order-table .product-name dl.variation dd p {
	display: inline;
	margin: 0;
}

.woocommerce-checkout-review-order-table .product-total .subscription-details,
.shop_table .subscription-details {
	display: block;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-xs);
	font-weight: 500;
	white-space: normal;
}

.woocommerce-checkout-review-order-table tfoot th,
.cart_totals .shop_table th {
	font-weight: 500;
	color: var(--hw-text-muted);
	text-align: left;
}

/* Total today: the big number of the receipt. */
.woocommerce-checkout-review-order-table tr.order-total:not(.recurring-total) th,
.woocommerce-checkout-review-order-table tr.order-total:not(.recurring-total) td,
.cart_totals tr.order-total:not(.recurring-total) th,
.cart_totals tr.order-total:not(.recurring-total) td {
	padding-block: 1.1rem 0.9rem !important;
	border-bottom: 0 !important;
	color: var(--hw-text);
	vertical-align: baseline;
}

.woocommerce-checkout-review-order-table tr.order-total:not(.recurring-total) th,
.cart_totals tr.order-total:not(.recurring-total) th {
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-md);
	font-weight: 750;
}

.woocommerce-checkout-review-order-table tr.order-total:not(.recurring-total) td,
.cart_totals tr.order-total:not(.recurring-total) td {
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-2xl);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.woocommerce-checkout-review-order-table .order-total .includes_tax,
.cart_totals .order-total .includes_tax {
	display: block;
	font-family: var(--hw-font-body);
	font-size: var(--hw-fs-xs);
	font-weight: 500;
	letter-spacing: 0;
	color: var(--hw-text-muted);
}

.woocommerce-checkout-review-order-table.is-updating,
.woocommerce-checkout-review-order-table.processing {
	opacity: 0.55;
	transition: opacity var(--hw-dur) var(--hw-ease);
}

.hw-was {
	margin-right: 0.35rem;
	color: var(--hw-text-faint);
	font-weight: 500;
}

/* "Vous économisez": a green ribbon. */
.hw-savings th,
.hw-savings td {
	border-bottom: 0 !important;
	color: var(--hw-success-text) !important;
	font-weight: 700 !important;
	white-space: nowrap;
}

.hw-savings th { padding-left: 0.85rem !important; border-radius: 12px 0 0 12px; background: var(--hw-success-bg) !important; }

.hw-savings td { padding-right: 0.85rem !important; border-radius: 0 12px 12px 0; background: var(--hw-success-bg) !important; font-size: var(--hw-fs-sm) !important; font-family: var(--hw-font-body) !important; letter-spacing: 0 !important; }

.hw-savings td small { font-weight: 500; }

/* WooCommerce Subscriptions: recurring totals in a tinted band. */
.woocommerce-checkout-review-order-table .recurring-totals th,
.cart_totals .recurring-totals th {
	padding: 1.1rem 0.85rem 0.5rem !important;
	border-bottom: 0 !important;
	border-radius: 14px 14px 0 0;
	background: var(--hw-light-bg) !important;
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-2xs) !important;
	font-weight: 750 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hw-text) !important;
}

.woocommerce-checkout-review-order-table tr.recurring-total th,
.woocommerce-checkout-review-order-table tr.recurring-total td,
.cart_totals tr.recurring-total th,
.cart_totals tr.recurring-total td {
	padding-inline: 0.85rem !important;
	border-bottom-color: var(--hw-light-border) !important;
	background: var(--hw-light-bg) !important;
	color: var(--hw-text-muted) !important;
	font-weight: 500 !important;
	font-size: var(--hw-fs-xs) !important;
}

.woocommerce-checkout-review-order-table tr.order-total.recurring-total th,
.woocommerce-checkout-review-order-table tr.order-total.recurring-total td,
.cart_totals tr.order-total.recurring-total th,
.cart_totals tr.order-total.recurring-total td {
	color: var(--hw-text) !important;
	font-weight: 700 !important;
	font-size: var(--hw-fs-sm) !important;
}

.woocommerce-checkout-review-order-table tr.order-total.recurring-total:last-child th,
.cart_totals tr.order-total.recurring-total:last-child th { border-bottom: 0 !important; border-radius: 0 0 0 14px; }

.woocommerce-checkout-review-order-table tr.order-total.recurring-total:last-child td,
.cart_totals tr.order-total.recurring-total:last-child td { border-bottom: 0 !important; border-radius: 0 0 14px 0; }

.first-payment-date {
	display: block;
	margin-top: 0.2rem;
	white-space: normal; /* The td is nowrap: a long date would widen the recap table past its card. */
	font-size: var(--hw-fs-2xs);
	font-weight: 500;
	color: var(--hw-text-muted);
}

/* Period switcher (checkout summary & cart lines). */
.hw-period-row td {
	padding: 0.25rem 0 1rem !important;
	text-align: left !important;
	white-space: normal !important;
}

.hw-period-select {
	display: grid;
	gap: 0.35rem;
}

.hw-period-select label {
	font-size: var(--hw-fs-2xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hw-text-muted);
}

.hw-period-select__control {
	width: 100%;
	min-height: 46px;
	border: 1px solid var(--hw-light-border-strong);
	border-radius: 12px;
	background-color: var(--hw-light-bg);
	color: var(--hw-text);
	font-size: var(--hw-fs-sm);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.hw-period-select__control:hover { border-color: #aeb6cf; }

.hw-period-select[aria-busy="true"] { opacity: 0.6; }

/* Reassurance under the totals: a ticket tear line with notches. */
.hw-checkout__reassure,
.cart_totals .hw-trust-list {
	position: relative;
}

.hw-checkout__reassure {
	margin: 1.25rem calc(-1 * var(--hw-wc-card-pad)) 0;
	padding: 1.35rem var(--hw-wc-card-pad) 0;
	border-top: 2px dashed var(--hw-light-border);
}

.hw-checkout__reassure::before,
.hw-checkout__reassure::after {
	content: "";
	position: absolute;
	top: -13px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--hw-wc-notch);
	box-shadow: inset 0 0 0 1px var(--hw-border);
}

.hw-checkout__reassure::before { left: -13px; clip-path: inset(0 0 0 50%); }

.hw-checkout__reassure::after { right: -13px; clip-path: inset(0 50% 0 0); }

.hw-trust-list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--hw-fs-xs);
	line-height: 1.5;
	color: var(--hw-text-muted);
}

.cart_totals .hw-trust-list {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--hw-border-soft);
}

.hw-trust-list li {
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr);
	gap: 0.7rem;
	align-items: center;
}

.hw-trust-list__icon {
	display: inline-grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 10px;
	background: rgba(0, 116, 163, 0.08);
	color: var(--hw-light-cyan);
}

.hw-trust-list__icon .hw-icon { --hw-icon-size: 1rem; }

.hw-trust-list strong { color: var(--hw-text); font-weight: 650; }

.hw-pay-marks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 1rem 0 0;
}

.hw-pay-marks span {
	padding: 0.2rem 0.55rem;
	border: 1px solid var(--hw-border);
	border-radius: 6px;
	background: var(--hw-light-bg);
	font-size: 0.6875rem;
	font-weight: 750;
	letter-spacing: 0.02em;
	color: var(--hw-text-muted);
}

/* =========================================================================
 * 4. Payment, terms, place order
 * ====================================================================== */

.hw-checkout__secure {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
	margin: -0.6rem 0 1.25rem;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-sm);
}

.hw-checkout__secure .hw-icon {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.15rem;
	color: var(--hw-success-text);
}

#payment {
	border-radius: 0;
	background: none;
}

#payment .wc_payment_methods {
	display: grid;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	padding: 0;
	border: 0;
	list-style: none;
}

#payment .wc_payment_method {
	padding: 1.05rem 1.15rem;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius);
	background: var(--hw-surface);
	transition: border-color var(--hw-dur-fast) var(--hw-ease), box-shadow var(--hw-dur-fast) var(--hw-ease);
}

#payment .wc_payment_method:has(> input:checked) {
	border-color: var(--hw-light-text);
	box-shadow: 0 0 0 1px var(--hw-light-text), var(--hw-light-shadow-sm);
}

#payment .wc_payment_method > label {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	color: var(--hw-text);
	cursor: pointer;
}

#payment .wc_payment_method > label img { max-height: 24px; width: auto; }

#payment .wc_payment_method > input[type="radio"] {
	margin-right: 0.5rem;
	accent-color: var(--hw-accent);
}

#payment .wc_payment_methods:has(> li:only-child) .wc_payment_method > input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

#payment .wc_payment_methods:has(> li:only-child) .wc_payment_method {
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

#payment .payment_box {
	margin: 0.9rem 0 0;
	padding: 0;
	background: none;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-sm);
}

#payment .payment_box::before { display: none; }

#payment .payment_box fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

#payment .woocommerce-SavedPaymentMethods {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 0.9rem;
	padding: 0;
	list-style: none;
}

#payment .woocommerce-SavedPaymentMethods li {
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--hw-border);
	border-radius: 12px;
	background: var(--hw-surface);
}

#payment .woocommerce-SavedPaymentMethods li:has(input:checked) { border-color: var(--hw-light-text); box-shadow: 0 0 0 1px var(--hw-light-text); }

#payment .woocommerce-SavedPaymentMethods li label {
	display: inline;
	margin-left: 0.35rem;
	color: var(--hw-text);
	font-weight: 600;
}

#payment .woocommerce-SavedPaymentMethods-saveNew label,
#payment .form-row.woocommerce-SavedPaymentMethods-saveNew { font-size: var(--hw-fs-sm); }

#payment .place-order {
	margin: 0;
	padding: 0;
}

.woocommerce-privacy-policy-text p {
	margin: 0 0 1rem;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-xs);
	line-height: 1.6;
}

.woocommerce-terms-and-conditions-wrapper .form-row.validate-required {
	display: block;
	margin: 0 0 1.1rem;
	padding: 0.95rem 1.05rem;
	border: 1px solid var(--hw-border);
	border-radius: 14px;
	background: var(--hw-light-bg);
	transition: border-color var(--hw-dur-fast) var(--hw-ease), background var(--hw-dur-fast) var(--hw-ease);
}

.woocommerce-terms-and-conditions-wrapper .form-row.validate-required:has(input:checked) {
	border-color: rgba(21, 122, 60, 0.35);
	background: #effaf3;
}

.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
	display: flex !important;
	gap: 0.75rem;
	align-items: start;
	font-size: var(--hw-fs-sm) !important;
	font-weight: 500 !important;
	line-height: 1.55 !important;
	cursor: pointer;
}

.woocommerce-terms-and-conditions-wrapper .required { margin-left: -0.45rem; }

.woocommerce-terms-and-conditions-wrapper input[type="checkbox"],
.woocommerce-form__input-checkbox {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.1rem 0 0;
	accent-color: var(--hw-accent);
}

.woocommerce-terms-and-conditions-wrapper .woocommerce-invalid { border-color: var(--hw-danger-text) !important; background: #fff3f5 !important; }

#place_order {
	position: relative;
	width: 100%;
	min-height: 60px;
	gap: 0.6rem;
	font-size: var(--hw-fs-md);
	letter-spacing: -0.01em;
}

#place_order::before {
	content: "";
	display: inline-block;
	width: 1.1rem;
	height: 1.1rem;
	margin-right: 0.55rem;
	vertical-align: -0.15em;
	background: currentColor;
	-webkit-mask: var(--hw-wc-mask-lock) center / contain no-repeat;
	mask: var(--hw-wc-mask-lock) center / contain no-repeat;
}

.hw-checkout .hw-recaptcha-note,
.hw-checkout .place-order .hw-recaptcha-note {
	margin: 0.85rem 0 0;
	font-size: var(--hw-fs-2xs);
	color: var(--hw-text-faint);
	text-align: center;
}

/* Order pay page (core form-pay.php). */
.hw-wc--pay #order_review {
	max-width: 760px;
	margin-inline: auto;
	padding: var(--hw-wc-card-pad);
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius-xl);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-lg);
}

.hw-wc--pay #order_review .shop_table { margin-bottom: 1.5rem; }

.hw-wc--pay #order_review .shop_table thead th {
	background: none !important;
	font-size: var(--hw-fs-2xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hw-text-muted);
}

.hw-wc--pay #order_review .shop_table tfoot tr:last-child th,
.hw-wc--pay #order_review .shop_table tfoot tr:last-child td {
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-lg);
	font-weight: 800;
	color: var(--hw-text);
}

/* =========================================================================
 * 5. Cart
 * ====================================================================== */

.woocommerce-cart .woocommerce {
	display: grid;
	gap: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
	align-items: start;
}

@media (min-width: 1000px) {
	.woocommerce-cart .woocommerce:has(.cart-collaterals) { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); }

	.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
}

.woocommerce-cart-form {
	min-width: 0;
	padding: 0.5rem var(--hw-wc-card-pad);
}

.woocommerce-cart-form .shop_table {
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	overflow: visible !important;
}

/* Headings stay for assistive technologies only: the lines read as cards. */
.woocommerce-cart-form .shop_table thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.woocommerce-cart-form .shop_table tbody { display: block; }

.woocommerce-cart-form .shop_table tr.cart_item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	grid-template-areas: "thumb name subtotal remove";
	gap: 0.35rem 1.1rem;
	align-items: center;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--hw-border-soft);
}

.woocommerce-cart-form .shop_table tr.cart_item td {
	display: block;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}

.woocommerce-cart-form .product-thumbnail { grid-area: thumb; }

.woocommerce-cart-form .product-name { grid-area: name; }

.woocommerce-cart-form .product-subtotal { grid-area: subtotal; text-align: right; white-space: nowrap; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--hw-text); font-size: var(--hw-fs-md); }

.woocommerce-cart-form .product-remove { grid-area: remove; }

.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-quantity { display: none !important; }

.woocommerce-cart-form .product-subtotal .subscription-details {
	font-size: var(--hw-fs-xs);
	font-weight: 500;
	color: var(--hw-text-muted);
}

.hw-line-icon {
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 14px;
	background: linear-gradient(145deg, #1a1d63, #0b0d42);
	color: #fff;
	box-shadow: 0 10px 22px -12px rgba(11, 13, 46, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hw-line-icon .hw-icon { --hw-icon-size: 1.35rem; }

.hw-line-icon--plan .hw-icon { color: var(--hw-cyan-bright); }

.hw-line-icon--domain { background: linear-gradient(145deg, #ff6a8b, #de2c54); }

.woocommerce-cart-form .product-name {
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-md);
	font-weight: 750;
	letter-spacing: -0.01em;
	color: var(--hw-text);
}

.woocommerce-cart-form .product-name dl.variation {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.4rem;
	margin: 0.3rem 0 0;
	font-family: var(--hw-font-body);
	font-size: var(--hw-fs-xs);
	font-weight: 500;
	color: var(--hw-text-muted);
}

.woocommerce-cart-form .product-name dl.variation dt,
.woocommerce-cart-form .product-name dl.variation dd,
.woocommerce-cart-form .product-name dl.variation p { margin: 0; }

.woocommerce-cart-form .product-name dl.variation dd { font-family: var(--hw-font-mono); color: var(--hw-text); }

.woocommerce-cart-form .product-name .hw-period-select {
	max-width: 360px;
	margin-top: 0.7rem;
	font-family: var(--hw-font-body);
	font-weight: 500;
	letter-spacing: 0;
}

.woocommerce-cart-form .product-remove a.remove {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--hw-border);
	border-radius: 50%;
	background: var(--hw-surface);
	color: var(--hw-text-muted) !important;
	font-size: 1.25rem;
	line-height: 1;
	text-decoration: none;
	transition: background var(--hw-dur-fast) var(--hw-ease), color var(--hw-dur-fast) var(--hw-ease), border-color var(--hw-dur-fast) var(--hw-ease);
}

.woocommerce-cart-form .product-remove a.remove:hover,
.woocommerce-cart-form .product-remove a.remove:focus-visible {
	border-color: rgba(180, 24, 58, 0.35);
	background: #fff3f5;
	color: var(--hw-danger-text) !important;
}

.woocommerce-cart-form tr:has(td.actions) { display: block; }

.woocommerce-cart-form td.actions {
	display: block;
	padding: 1.1rem 0 0.75rem !important;
	border: 0 !important;
	background: none !important;
}

.woocommerce-cart-form td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
}

.woocommerce-cart-form td.actions .coupon .input-text {
	flex: 1 1 200px;
	max-width: 300px;
	min-height: 44px;
	border-style: dashed;
	text-transform: uppercase;
}

.woocommerce-cart-form td.actions .coupon .input-text::placeholder { text-transform: none; }

.woocommerce-cart-form td.actions .coupon .button {
	--hw-btn-h: 44px;
	border: 1px solid var(--hw-light-border-strong);
	background: var(--hw-surface);
	color: var(--hw-text) !important;
	box-shadow: none;
	font-size: var(--hw-fs-sm);
}

.woocommerce-cart-form td.actions .coupon .button:hover { border-color: var(--hw-light-text); }

.woocommerce-cart-form td.actions > button[name="update_cart"] { display: none; }

.hw-qty { font-weight: 600; }

.cart_totals .shop_table { margin: 0; }

.wc-proceed-to-checkout { padding: 1.1rem 0 0; }

.wc-proceed-to-checkout .checkout-button {
	display: flex;
	width: 100%;
	min-height: 58px;
	font-size: var(--hw-fs-md);
}

.wc-proceed-to-checkout .checkout-button::after {
	content: "→";
	margin-left: 0.5rem;
	transition: transform var(--hw-dur) var(--hw-ease);
}

.wc-proceed-to-checkout .checkout-button:hover::after { transform: translateX(3px); }

/* Mixed-cart upsells (inc/woocommerce.php). */
.hw-upsell {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem 1.25rem;
	align-items: center;
	margin: 0;
	padding: var(--hw-wc-card-pad);
	border-radius: var(--hw-radius-xl);
}

.hw-upsell.hw-dark {
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(520px 260px at 100% 0%, rgba(1, 200, 239, 0.22), transparent 70%),
		radial-gradient(420px 240px at 0% 100%, rgba(243, 53, 91, 0.16), transparent 70%),
		linear-gradient(160deg, #161a5e, #070935);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 30px 60px -32px rgba(11, 13, 46, 0.75);
}

.hw-upsell__visual { --hw-illus-max: 84px; margin: 0; }

.hw-upsell__icon {
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 14px;
	background: rgba(0, 116, 163, 0.08);
	color: var(--hw-light-cyan);
}

.hw-upsell__icon .hw-icon { --hw-icon-size: 1.5rem; }

.hw-upsell__eyebrow {
	margin: 0 0 0.2rem;
	font-size: var(--hw-fs-2xs);
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hw-pink-text);
}

.hw-upsell__title {
	margin: 0;
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-lg);
	font-weight: 750;
	letter-spacing: -0.02em;
	color: var(--hw-text);
}

.hw-upsell__text {
	margin: 0.25rem 0 0;
	font-size: var(--hw-fs-sm);
	color: var(--hw-text-muted);
}

.hw-upsell__content {
	grid-column: 1 / -1;
	min-width: 0;
}

.hw-upsell > .hw-btn { grid-column: 1 / -1; justify-self: start; }

.hw-upsell__plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hw-upsell__plan {
	position: relative;
	display: grid;
	gap: 0.3rem;
	align-content: start;
	padding: 1.15rem;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-sm);
	transition: transform var(--hw-dur) var(--hw-ease), box-shadow var(--hw-dur) var(--hw-ease), border-color var(--hw-dur) var(--hw-ease);
}

.hw-upsell__plan:hover {
	border-color: var(--hw-light-border-strong);
	box-shadow: var(--hw-light-shadow);
	transform: translateY(-2px);
}

.hw-upsell__plan--premium {
	border-color: rgba(222, 44, 84, 0.35);
	box-shadow: 0 0 0 1px rgba(222, 44, 84, 0.12), var(--hw-light-shadow);
}

.hw-upsell__plan-icon {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 0.35rem;
	border-radius: 10px;
	background: linear-gradient(145deg, #1a1d63, #0b0d42);
	color: var(--hw-cyan-bright);
}

.hw-upsell__plan-icon .hw-icon { --hw-icon-size: 1.1rem; }

.hw-upsell__plan-name {
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-md);
	font-weight: 750;
	color: var(--hw-text);
}

.hw-upsell__plan-price {
	font-size: var(--hw-fs-sm);
	font-weight: 650;
	color: var(--hw-light-accent);
}

.hw-upsell__plan-facts {
	font-size: var(--hw-fs-xs);
	color: var(--hw-text-muted);
}

.hw-upsell__plan-add { margin: 0.6rem 0 0; }

.hw-upsell__plan-add .hw-btn .hw-icon { --hw-icon-size: 1em; }

.hw-upsell__plan-link {
	justify-self: start;
	font-size: var(--hw-fs-xs);
	font-weight: 600;
	color: var(--hw-link);
}

/* The upsell sits between the cart form and the totals (its own forms). */
.woocommerce-cart .woocommerce > .hw-upsell { min-width: 0; }

@media (min-width: 1000px) {
	.woocommerce-cart .woocommerce:has(> .hw-upsell) {
		grid-template-rows: auto auto auto 1fr;
	}

	.woocommerce-cart .woocommerce:has(> .hw-upsell) > .woocommerce-notices-wrapper { grid-row: 1; }

	.woocommerce-cart .woocommerce:has(> .hw-upsell) > .woocommerce-cart-form { grid-column: 1; grid-row: 2; }

	.woocommerce-cart .woocommerce > .hw-upsell { grid-column: 1; grid-row: 3; }

	.woocommerce-cart .woocommerce:has(> .hw-upsell) > .cart-collaterals {
		grid-column: 2;
		grid-row: 2 / span 3;
	}
}

/* Optional domain step (checkout, plan page). */
.hw-domain-step {
	margin: 0 0 1.25rem;
	padding: 0;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-wc-card-radius);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-sm);
	transition: border-color var(--hw-dur) var(--hw-ease), box-shadow var(--hw-dur) var(--hw-ease);
}

.hw-domain-step[open] {
	border-color: var(--hw-light-border-strong);
	box-shadow: var(--hw-light-shadow);
}

.hw-domain-step--plan { margin: 1rem 0 0; }

.hw-domain-step__summary {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	padding: 1rem 1.25rem;
	border-radius: inherit;
	cursor: pointer;
	list-style: none;
}

.hw-domain-step__summary::-webkit-details-marker { display: none; }

.hw-domain-step__summary:focus-visible {
	outline: 2px solid var(--hw-focus);
	outline-offset: 2px;
}

.hw-domain-step__icon {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 14px;
	background: linear-gradient(145deg, #ff6a8b, #de2c54);
	color: #fff;
	box-shadow: 0 10px 20px -12px rgba(222, 44, 84, 0.9);
}

.hw-domain-step__icon .hw-icon { width: 1.3rem; height: 1.3rem; }

.hw-domain-step__titles {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
}

.hw-domain-step__title {
	font-family: var(--hw-font-head);
	font-weight: 750;
	color: var(--hw-text);
}

.hw-domain-step__hint {
	font-size: var(--hw-fs-sm);
	color: var(--hw-text-muted);
}

.hw-domain-step__chevron {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--hw-border);
	border-radius: 50%;
}

.hw-domain-step__chevron .hw-icon {
	width: 1rem;
	height: 1rem;
	transition: transform var(--hw-dur) var(--hw-ease);
}

.hw-domain-step[open] .hw-domain-step__chevron .hw-icon { transform: rotate(180deg); }

.hw-domain-step__body { padding: 0 1.25rem 1.25rem; }

.hw-domain-search--inline .hw-domain-search__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Empty cart. */
.hw-cart-empty {
	display: grid;
	gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.hw-cart-empty__hero {
	display: grid;
	gap: 1.5rem;
	align-items: center;
	padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius-xl);
	background:
		radial-gradient(520px 260px at 0% 50%, rgba(1, 200, 239, 0.08), transparent 70%),
		var(--hw-surface);
	box-shadow: var(--hw-light-shadow);
}

@media (min-width: 760px) {
	.hw-cart-empty__hero { grid-template-columns: 220px minmax(0, 1fr); }
}

.hw-cart-empty__visual { --hw-illus-max: 220px; }

.hw-cart-empty__title {
	margin: 0;
	font-size: var(--hw-fs-2xl);
	letter-spacing: -0.03em;
}

.hw-cart-empty__text {
	max-width: 52ch;
	margin: 0.5rem 0 0;
	color: var(--hw-text-muted);
}

.hw-cart-empty .hw-actions { margin-top: 1.25rem; }

.hw-cart-empty .hw-actions .hw-icon { --hw-icon-size: 1em; }

.hw-cart-empty__block {
	display: grid;
	gap: 1rem;
}

.hw-cart-empty__subtitle {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-size: var(--hw-fs-lg);
	letter-spacing: -0.02em;
}

.hw-cart-empty__subtitle .hw-icon {
	--hw-icon-size: 1.15rem;
	color: var(--hw-light-cyan);
}

.hw-cart-empty__domain {
	padding: var(--hw-wc-card-pad);
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius-xl);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-sm);
}

/* =========================================================================
 * 6. Login / lost password
 * ====================================================================== */

.hw-login {
	display: grid;
	gap: clamp(1.25rem, 0.8rem + 2vw, 2rem);
	align-items: stretch;
	max-width: 1080px;
	margin-inline: auto;
}

@media (min-width: 900px) {
	.hw-login { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}

.hw-login__main,
.hw-login__side {
	position: relative;
	padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
	border-radius: var(--hw-radius-xl);
}

.hw-login__main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-shadow: var(--hw-light-shadow-lg);
}

.hw-login__main .woocommerce-form-login {
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.hw-login__badge {
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.1rem;
	border-radius: 16px;
	background: linear-gradient(145deg, #1a1d63, #0b0d42);
	color: var(--hw-cyan-bright);
	box-shadow: 0 12px 26px -14px rgba(11, 13, 46, 0.85);
}

.hw-login__badge .hw-icon { --hw-icon-size: 1.35rem; }

.hw-login__title,
.hw-login__side h2,
.hw-login__magic h2 {
	margin: 0 0 0.4rem;
	font-size: var(--hw-fs-2xl);
	letter-spacing: -0.03em;
}

.hw-login__intro {
	margin: 0 0 1.6rem;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-sm);
}

.hw-login__row {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
}

.hw-login__lost {
	font-size: var(--hw-fs-sm);
	font-weight: 650;
}

.hw-login__side {
	overflow: hidden;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100%;
	background:
		radial-gradient(520px 300px at 100% 0%, rgba(1, 200, 239, 0.24), transparent 70%),
		radial-gradient(420px 260px at 0% 100%, rgba(243, 53, 91, 0.2), transparent 70%),
		linear-gradient(160deg, #161a5e, #050631);
	border: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 40px 80px -40px rgba(11, 13, 46, 0.8);
}

.hw-login__side::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 10%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 90% 70% at 70% 10%, #000 20%, transparent 75%);
}

.hw-login__visual {
	--hw-illus-max: 260px;
	margin: 0 0 1rem auto;
}

.hw-login__eyebrow {
	margin: 0 0 0.6rem;
	font-size: var(--hw-fs-2xs);
	font-weight: 750;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hw-cyan-bright);
}

.hw-login__side h2 { color: var(--hw-text); }

.hw-login__side p { color: var(--hw-text-muted); }

.hw-login__perks {
	display: grid;
	gap: 0.7rem;
	margin: 1.25rem 0 1.6rem;
	padding: 0;
	list-style: none;
	color: var(--hw-text);
	font-size: var(--hw-fs-sm);
}

.hw-login__perks li {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
}

.hw-login__perks .hw-icon {
	flex: 0 0 auto;
	box-sizing: content-box;
	width: 0.85rem;
	height: 0.85rem;
	margin-top: 0.05rem;
	padding: 0.25rem;
	border-radius: 50%;
	background: var(--hw-cyan-soft);
	color: var(--hw-cyan-bright);
}

.hw-login__side .hw-actions { margin: 0; }

.hw-login__side .hw-btn .hw-icon { --hw-icon-size: 1em; }

.hw-login__magic {
	margin: 0 0 1.75rem;
	padding: 1.25rem;
	border: 1px solid rgba(29, 95, 184, 0.22);
	border-radius: var(--hw-radius);
	background: #f1f6ff;
}

.hw-login__magic h2 { font-size: var(--hw-fs-lg); }

.woocommerce-ResetPassword,
.woocommerce-account:not(.logged-in) .woocommerce > form.lost_reset_password {
	max-width: 560px;
	margin-inline: auto;
	border-color: var(--hw-border) !important;
	background: var(--hw-surface) !important;
	box-shadow: var(--hw-light-shadow-lg) !important;
}

.woocommerce-ResetPassword > p:first-child { margin-top: 0; color: var(--hw-text-muted); }

.woocommerce-ResetPassword .form-row-first { width: 100%; }

.woocommerce-ResetPassword .button { width: 100%; }

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-message,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-account:not(.logged-in) .woocommerce > p {
	max-width: 1080px;
	margin-inline: auto;
}

/* WooCommerce "show password" toggle (added by its JS around password inputs). */
.woocommerce .password-input {
	position: relative;
	display: block;
}

.woocommerce .password-input input { padding-right: 3rem; }

.woocommerce .show-password-input {
	position: absolute;
	top: 50%;
	right: 0.6rem;
	width: 2rem;
	height: 2rem;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: var(--hw-text-muted);
	transform: translateY(-50%);
	cursor: pointer;
}

.woocommerce .show-password-input::before {
	content: "";
	position: absolute;
	inset: 0.35rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce .show-password-input.display-password { color: var(--hw-light-accent); }

.woocommerce .show-password-input:hover {
	background: var(--hw-surface-2);
	box-shadow: none;
	transform: translateY(-50%);
}

/* =========================================================================
 * 7. Customer area
 * ====================================================================== */

/* One column that may shrink (a wide child — nav pills, long e-mail — must never widen the page). */
.woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 960px) {
	.woocommerce-account.logged-in .woocommerce {
		grid-template-columns: 272px minmax(0, 1fr);
		gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	}
}

/* Sidebar. */
.hw-account-nav {
	display: grid;
	gap: 0.85rem;
	align-content: start;
}

@media (min-width: 960px) {
	.hw-account-nav {
		position: sticky;
		top: calc(var(--hw-header-h) + 20px);
	}
}

.hw-account-nav__who {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	padding: 0.85rem;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-sm);
}

.hw-account-nav__avatar {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 12px;
	background: var(--hw-gradient-brand);
	color: #fff;
	font-family: var(--hw-font-head);
	font-weight: 800;
	box-shadow: 0 8px 18px -10px rgba(139, 108, 255, 0.9);
}

.hw-account-nav__id {
	display: grid;
	min-width: 0;
	font-size: var(--hw-fs-sm);
	line-height: 1.35;
}

.hw-account-nav__id strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--hw-text);
}

.hw-account-nav__id span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-xs);
}

.woocommerce-MyAccount-navigation.hw-account-nav ul {
	gap: 2px;
	padding: 0.5rem;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-sm);
}

.woocommerce-MyAccount-navigation.hw-account-nav a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 0.8rem;
	border-radius: 10px;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-sm);
	font-weight: 600;
	line-height: 1.3;
	transition: background var(--hw-dur-fast) var(--hw-ease), color var(--hw-dur-fast) var(--hw-ease);
}

.woocommerce-MyAccount-navigation.hw-account-nav a:hover {
	background: var(--hw-light-bg);
	color: var(--hw-text);
}

.hw-account-nav__icon {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	color: var(--hw-text-faint);
	transition: color var(--hw-dur-fast) var(--hw-ease);
}

.woocommerce-MyAccount-navigation.hw-account-nav .is-active a {
	background: var(--hw-light-text);
	color: #fff;
	box-shadow: 0 10px 22px -14px rgba(11, 13, 46, 0.9);
}

.woocommerce-MyAccount-navigation.hw-account-nav .is-active .hw-account-nav__icon { color: var(--hw-cyan-bright); }

.woocommerce-MyAccount-navigation.hw-account-nav li.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 0.35rem;
	padding-top: 0.35rem;
	border-top: 1px solid var(--hw-border-soft);
}

.woocommerce-MyAccount-navigation.hw-account-nav li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: #fff3f5;
	color: var(--hw-danger-text);
}

.hw-account-nav__help {
	display: grid;
	gap: 0.1rem;
	padding: 0.5rem 0.35rem;
	font-size: var(--hw-fs-sm);
}

.hw-account-nav__help-title {
	margin: 0 0 0.35rem;
	padding-left: 0.5rem;
	font-size: var(--hw-fs-2xs);
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hw-text-faint);
}

.hw-account-nav__help a {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.45rem 0.5rem;
	border-radius: 8px;
	color: var(--hw-text-muted) !important;
	text-decoration: none;
}

.hw-account-nav__help a:hover {
	background: var(--hw-surface);
	color: var(--hw-text) !important;
}

.hw-account-nav__help .hw-icon {
	width: 1.05rem;
	height: 1.05rem;
}

.woocommerce-MyAccount-content {
	display: grid;
	gap: 1.25rem;
	align-content: start;
	min-width: 0;
}

.woocommerce-MyAccount-content > * { margin-block: 0; }

.woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty { display: none; }

/* Console dashboard. */
.hw-dash {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}

.hw-dash__who {
	margin: 0;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-sm);
}

.hw-dash__logout {
	margin-left: 0.35rem;
	font-weight: 600;
}

.hw-dash__kpis {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

@media (min-width: 1180px) {
	.hw-dash__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hw-kpi {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "icon label" "value value" "note note";
	gap: 0.2rem 0.6rem;
	align-content: start;
	padding: 1.05rem 1.15rem 1.1rem;
}

.hw-kpi__icon {
	grid-area: icon;
	display: inline-grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 10px;
	background: var(--hw-light-bg);
	color: var(--hw-light-cyan);
}

.hw-kpi__icon .hw-icon { --hw-icon-size: 1rem; }

.hw-kpi__label {
	grid-area: label;
	align-self: center;
	font-size: var(--hw-fs-xs);
	font-weight: 650;
	line-height: 1.3;
	color: var(--hw-text-muted);
	hyphens: manual;
	text-wrap: balance;
}

.hw-kpi__value {
	grid-area: value;
	margin-top: 0.6rem;
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-2xl);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--hw-text);
}

.hw-kpi__value--date { font-size: var(--hw-fs-lg); line-height: 1.35; }

.hw-kpi__note {
	grid-area: note;
	font-size: var(--hw-fs-xs);
	line-height: 1.4;
	color: var(--hw-text-muted);
	hyphens: manual;
}

.hw-kpi__note--warn { color: var(--hw-warning-text); font-weight: 650; }

/* Cards stacked full width: calm reading order (services → panel → domains → orders). */
.hw-dash__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}

.hw-dash__card { padding: var(--hw-wc-card-pad); }

.hw-dash__card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 0.85rem;
}

.hw-dash__card-head h2,
.hw-dash__section-title {
	margin: 0;
	font-size: var(--hw-fs-lg);
	letter-spacing: -0.02em;
}

.woocommerce-MyAccount-content .hw-dash .hw-dash__section-title { margin: 0.75rem 0 1rem; }

.hw-dash__more {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: var(--hw-fs-sm);
	font-weight: 650;
	text-decoration: none;
}

.hw-dash__more .hw-icon {
	--hw-icon-size: 0.95em;
	transition: transform var(--hw-dur) var(--hw-ease);
}

.hw-dash__more:hover .hw-icon { transform: translateX(3px); }

.hw-dash__text,
.hw-dash__note {
	margin: 0 0 1rem;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-sm);
}

.hw-dash__note { margin: 0.9rem 0 0; }

.hw-dash__card-foot { margin: 1rem 0 0; }

.hw-dash__card-foot .hw-btn .hw-icon,
.hw-orders-mini .hw-btn .hw-icon { --hw-icon-size: 1em; }

.hw-dash__card--empty .hw-dash__card-head { margin-bottom: 1rem; }

/* Services. */
.hw-services {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hw-services__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	gap: 0.6rem 1rem;
	align-items: center;
	padding: 0.95rem 0;
	border-top: 1px solid var(--hw-border-soft);
}

.hw-services__item:first-child {
	padding-top: 0.15rem;
	border-top: 0;
}

.hw-services__icon {
	display: inline-grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 12px;
	background: linear-gradient(145deg, #1a1d63, #0b0d42);
	color: var(--hw-cyan-bright);
}

.hw-services__item--globe .hw-services__icon { background: linear-gradient(145deg, #ff6a8b, #de2c54); color: #fff; }

.hw-services__icon .hw-icon { --hw-icon-size: 1.15rem; }

.hw-services__name {
	margin: 0;
	font-weight: 700;
	color: var(--hw-text);
	line-height: 1.35;
}

.hw-services__domain {
	margin: 0.1rem 0 0;
	font-family: var(--hw-font-mono);
	font-size: var(--hw-fs-xs);
	color: var(--hw-text);
}

.hw-services__meta {
	margin: 0.15rem 0 0;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-xs);
}

.hw-services__meta:empty { display: none; }

/* Status pills (subscriptions, orders). */
.hw-status {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.25rem 0.7rem;
	border: 1px solid transparent;
	border-radius: var(--hw-radius-pill);
	background: var(--hw-light-bg-2);
	color: var(--hw-light-muted);
	font-size: var(--hw-fs-2xs);
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.hw-status::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: currentColor;
}

.hw-status--success { border-color: rgba(21, 122, 60, 0.18); background: #ebf8ef; color: var(--hw-success-text); }

.hw-status--success::before { box-shadow: 0 0 0 3px rgba(21, 122, 60, 0.15); }

.hw-status--cyan { border-color: rgba(0, 116, 163, 0.18); background: #e9f5fb; color: var(--hw-light-cyan); }

.hw-status--warning { border-color: rgba(138, 93, 0, 0.18); background: #fdf5e1; color: var(--hw-warning-text); }

.hw-status--danger { border-color: rgba(180, 24, 58, 0.18); background: #fff1f3; color: var(--hw-danger-text); }

/* Latest orders. */
.hw-orders-mini,
.hw-domains-mini {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hw-orders-mini__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto auto;
	gap: 0.5rem 1rem;
	align-items: center;
	padding: 0.8rem 0;
	border-top: 1px solid var(--hw-border-soft);
}

.hw-orders-mini__item:first-child { padding-top: 0.15rem; border-top: 0; }

.hw-orders-mini__icon {
	display: inline-grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 10px;
	background: var(--hw-light-bg);
	color: var(--hw-text-muted);
}

.hw-orders-mini__icon .hw-icon { --hw-icon-size: 1rem; }

.hw-orders-mini__main {
	display: grid;
	min-width: 0;
}

.hw-orders-mini__num {
	font-weight: 700;
	color: var(--hw-text) !important;
	text-decoration: none;
}

.hw-orders-mini__num:hover { text-decoration: underline; }

.hw-orders-mini__date {
	font-size: var(--hw-fs-xs);
	color: var(--hw-text-muted);
}

.hw-orders-mini__total { color: var(--hw-text); }

.hw-orders-mini__action:empty { display: none; }

/* CyberPanel card (dark island). */
.hw-dash__panel {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-color: rgba(255, 255, 255, 0.08);
	background:
		radial-gradient(420px 260px at 100% 0%, rgba(1, 200, 239, 0.22), transparent 70%),
		radial-gradient(360px 220px at 0% 100%, rgba(139, 108, 255, 0.18), transparent 70%),
		linear-gradient(165deg, #171b62, #070935);
	box-shadow: 0 30px 60px -30px rgba(11, 13, 46, 0.8);
}

.hw-dash__panel-visual { display: none; }

.hw-dash__panel-visual .hw-illustration { --hw-illus-max: 150px; }

/* A horizontal band from 760 px: text and access on the left, the 3D render on the right. */
@media (min-width: 760px) {
	.hw-dash__panel {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 150px;
		gap: 0 clamp(1.25rem, 3vw, 2.5rem);
		align-items: center;
	}

	.hw-dash__panel-visual {
		display: block;
		grid-column: 2;
		grid-row: 1;
		width: 150px;
	}

	.hw-dash__panel-body { grid-column: 1; grid-row: 1; }
}

.hw-dash__panel-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	min-width: 0;
}

@media (min-width: 1100px) {
	.hw-dash__panel-body { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; }

	.hw-dash__panel-body > :not(.hw-dash__panel-host):not(.hw-actions) { grid-column: 1 / -1; }

	.hw-dash__panel-body > .hw-dash__panel-host { margin: 0; }

	.hw-dash__panel .hw-btn--block { display: inline-flex; width: auto; }
}

.hw-dash__panel-eyebrow {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	padding: 0.25rem 0.7rem 0.25rem 0.55rem;
	border: 1px solid rgba(55, 194, 103, 0.35);
	border-radius: var(--hw-radius-pill);
	background: rgba(55, 194, 103, 0.12);
	color: var(--hw-success-text);
	font-size: var(--hw-fs-2xs);
	font-weight: 700;
}

.hw-dash__panel-eyebrow .hw-badge__dot { background: var(--hw-success); }

.hw-dash__panel h2 {
	margin: 0 0 0.4rem;
	font-size: var(--hw-fs-xl);
	letter-spacing: -0.02em;
	color: var(--hw-text);
}

.hw-dash__panel .hw-dash__text { max-width: 56ch; }

.hw-dash__panel-host {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem 0.75rem;
	margin: 0 0 1rem;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--hw-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	font-size: var(--hw-fs-xs);
	color: var(--hw-text-muted);
}

.hw-dash__panel-host code {
	font-family: var(--hw-font-mono);
	color: var(--hw-cyan-bright);
	overflow-wrap: anywhere;
}

.hw-dash__panel .hw-actions { margin: 0; }

.hw-dash__panel a:not(.hw-btn) { color: var(--hw-cyan-bright) !important; }

/* Domains summary. */
.hw-domains-mini__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.15rem 0.75rem;
	align-items: center;
	padding: 0.7rem 0;
	border-top: 1px solid var(--hw-border-soft);
}

.hw-domains-mini__item:first-child { padding-top: 0.1rem; border-top: 0; }

.hw-domains-mini__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: var(--hw-font-mono);
	font-size: var(--hw-fs-sm);
	font-weight: 600;
	color: var(--hw-text);
}

.hw-domains-mini__exp {
	grid-column: 1 / -1;
	font-size: var(--hw-fs-xs);
	color: var(--hw-text-muted);
}

.hw-dash__domains .hw-notice { margin-bottom: 1rem; }

/* Pending registrant details (provisioning notice): sentence first, then the domains, never squeezed. */
.hw-dash .hw-domains-pending {
	flex-direction: column;
	gap: 0.5rem;
}

.hw-dash .hw-domains-pending p { margin: 0; }

.hw-wc .hw-domains-pending__list a {
	max-width: 100%;
	overflow-wrap: anywhere;
}

/* Quick actions: 1 column, then 2 balanced columns; an odd last card spans the row (no hole). */
.hw-quick {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.hw-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.hw-quick > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.hw-quick__link {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	height: 100%;
	padding: 0.95rem 1rem;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-sm);
	color: var(--hw-text) !important;
	text-decoration: none;
	transition: border-color var(--hw-dur) var(--hw-ease), transform var(--hw-dur) var(--hw-ease), box-shadow var(--hw-dur) var(--hw-ease);
}

.hw-quick__link:hover {
	border-color: var(--hw-light-border-strong);
	box-shadow: var(--hw-light-shadow);
	transform: translateY(-2px);
}

.hw-quick__icon {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 11px;
	background: var(--hw-light-bg);
	color: var(--hw-light-cyan);
}

.hw-quick__icon .hw-icon { width: 1.15rem; height: 1.15rem; }

.hw-quick__text {
	display: grid;
	flex: 1 1 auto;
	gap: 0.1rem;
	min-width: 0;
	font-size: var(--hw-fs-sm);
	line-height: 1.35;
	hyphens: manual;
	overflow-wrap: normal;
}

.hw-quick__text strong { text-wrap: balance; }

.hw-quick__text span {
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-xs);
}

.hw-quick__arrow .hw-icon {
	--hw-icon-size: 1rem;
	color: var(--hw-text-faint);
	transition: transform var(--hw-dur) var(--hw-ease), color var(--hw-dur) var(--hw-ease);
}

.hw-quick__link:hover .hw-quick__arrow .hw-icon { color: var(--hw-text); transform: translateX(3px); }

.hw-quick__link:focus-visible {
	outline: 2px solid var(--hw-light-cyan);
	outline-offset: 2px;
	border-color: var(--hw-light-cyan);
}

/* Empty states (hw_wc_account_empty()): render or icon, one sentence, one primary action. */
.hw-acc-empty {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.25rem clamp(1.25rem, 3vw, 2rem);
	align-items: center;
	padding: var(--hw-wc-card-pad);
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-wc-card-radius);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-sm);
}

.hw-dash__card .hw-acc-empty {
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.hw-acc-empty__visual { display: grid; place-items: center; }

.hw-acc-empty__render { --hw-illus-max: 120px; width: 120px; }

.woocommerce-MyAccount-content .hw-acc-empty__title {
	margin: 0 0 0.35rem;
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-lg);
	font-weight: 750;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--hw-text);
	text-wrap: balance;
}

.hw-acc-empty__text {
	max-width: 54ch;
	margin: 0;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-sm);
	text-wrap: pretty;
}

.hw-acc-empty__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin: 1.1rem 0 0;
}

.hw-acc-empty__actions .hw-btn .hw-icon { --hw-icon-size: 1em; }

.hw-wc .hw-acc-empty__link {
	font-size: var(--hw-fs-sm);
	font-weight: 650;
	color: var(--hw-light-cyan);
	text-underline-offset: 3px;
}

.hw-acc-empty--compact { gap: 0.9rem; }

.woocommerce-MyAccount-content .hw-acc-empty--compact .hw-acc-empty__title {
	margin: 0 0 0.1rem;
	font-size: var(--hw-fs-sm);
	font-weight: 700;
}

.hw-acc-empty--compact .hw-acc-empty__text { font-size: var(--hw-fs-xs); }

@media (max-width: 520px) {
	.hw-acc-empty:not(.hw-acc-empty--compact) { grid-template-columns: minmax(0, 1fr); justify-items: start; }

	.hw-acc-empty__render { --hw-illus-max: 96px; width: 96px; }
}

/* Account headings: air above, close to their content below. */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3,
.woocommerce-order h2:not(.hw-thanks__title):not(.hw-thanks__subtitle) {
	margin: 0.75rem 0 0.75rem;
	font-size: var(--hw-fs-lg);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* Direct children of the content grid (gap 1.25rem): pull the content closer to its heading. */
.woocommerce-MyAccount-content > :is(h2, h3) { margin: 0.75rem 0 -0.5rem; }

.woocommerce-MyAccount-content :is(section, header) > :is(h2, h3):first-child { margin-top: 0.5rem; }

/* A later heading inside the same section (order page: "Related subscriptions" after the details). */
.woocommerce-MyAccount-content section > :is(h2, h3):not(:first-child),
.woocommerce-MyAccount-content section > header:not(:first-child) > :is(h2, h3) { margin-top: 2rem; }

.woocommerce-MyAccount-content .hw-dash h2 { margin: 0; }

/* Account tables (orders, subscriptions, related orders, payment methods). */
.woocommerce-MyAccount-content table.shop_table,
.woocommerce-MyAccount-content .woocommerce-table,
.woocommerce-order table.shop_table {
	border-color: var(--hw-border);
	border-radius: var(--hw-wc-card-radius);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-sm);
}

.woocommerce-MyAccount-content table.shop_table thead th,
.woocommerce-order table.shop_table thead th {
	padding-block: 0.8rem;
	background: var(--hw-light-bg) !important;
	font-family: var(--hw-font-body);
	font-size: var(--hw-fs-2xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hw-text-muted);
}

.woocommerce-MyAccount-content table.shop_table td,
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-order table.shop_table td,
.woocommerce-order table.shop_table th {
	border-bottom-color: var(--hw-border-soft);
	vertical-align: middle;
}

.woocommerce-MyAccount-content table.shop_table tbody tr { transition: background var(--hw-dur-fast) var(--hw-ease); }

.woocommerce-MyAccount-content table.shop_table tbody tr:hover > * { background: #fafbfe; }

.woocommerce-MyAccount-content table.shop_table tr:last-child td,
.woocommerce-MyAccount-content table.shop_table tr:last-child th { border-bottom: 0; }

.woocommerce-MyAccount-content table.shop_table tfoot th,
.woocommerce-order table.shop_table tfoot th { color: var(--hw-text-muted); font-weight: 600; }

.woocommerce-MyAccount-content table.shop_table tfoot tr:last-child td,
.woocommerce-order table.shop_table tfoot tr:last-child td { font-weight: 800; color: var(--hw-text); }

.woocommerce-orders-table__cell-order-number a,
.woocommerce-orders-table__cell-subscription-id a {
	font-weight: 700;
	color: var(--hw-text) !important;
}

/* Status cells read as pills (row class carries the status). */
.woocommerce-orders-table__cell-order-status,
.woocommerce-orders-table__cell-subscription-status { white-space: nowrap; }

.hw-wc .woocommerce-orders-table__cell-order-status,
.hw-wc .woocommerce-orders-table__cell-subscription-status,
.hw-wc .my_account_subscriptions .subscription-status { font-size: var(--hw-fs-xs) !important; font-weight: 700; }

.hw-wc tr:is([class*="--status-completed"], [class*="--status-active"]) :is(.woocommerce-orders-table__cell-order-status, .woocommerce-orders-table__cell-subscription-status, .subscription-status) { color: var(--hw-success-text); }

.hw-wc tr:is([class*="--status-processing"]) :is(.woocommerce-orders-table__cell-order-status, .woocommerce-orders-table__cell-subscription-status) { color: var(--hw-light-cyan); }

.hw-wc tr:is([class*="--status-on-hold"], [class*="--status-pending"]) :is(.woocommerce-orders-table__cell-order-status, .woocommerce-orders-table__cell-subscription-status, .subscription-status) { color: var(--hw-warning-text); }

.hw-wc tr:is([class*="--status-failed"]) :is(.woocommerce-orders-table__cell-order-status, .woocommerce-orders-table__cell-subscription-status, .subscription-status) { color: var(--hw-danger-text); }

/* Buttons inside tables & subscription actions. */
.woocommerce-MyAccount-content table .button,
.woocommerce-order table .button,
.woocommerce-MyAccount-content .subscription_details .button,
.woocommerce-MyAccount-content > .button,
.woocommerce-MyAccount-content .woocommerce-Button {
	--hw-btn-h: 38px;
	margin: 0.15rem 0.35rem 0.15rem 0;
	padding: 0.4rem 0.95rem;
	font-size: var(--hw-fs-xs);
	box-shadow: none;
}

.woocommerce-MyAccount-content .woocommerce-button.view,
.woocommerce-MyAccount-content .button.hw-invoice,
.woocommerce-MyAccount-content [class*="hw-invoice"].button,
.woocommerce-MyAccount-content .subscription_details .button:not(.subscription_renewal_early):not(.wcs-switch-link),
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button:not(.pay) {
	border: 1px solid var(--hw-light-border-strong);
	background: var(--hw-surface);
	color: var(--hw-text) !important;
	box-shadow: none;
}

.woocommerce-MyAccount-content .woocommerce-button.view:hover,
.woocommerce-MyAccount-content .subscription_details .button:not(.subscription_renewal_early):not(.wcs-switch-link):hover,
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button:not(.pay):hover {
	border-color: var(--hw-light-text);
	background: var(--hw-surface);
}

.woocommerce-MyAccount-content .subscription_details .button.cancel {
	border-color: transparent;
	color: var(--hw-danger-text) !important;
}

.woocommerce-MyAccount-content .subscription_details .button.cancel:hover {
	border-color: rgba(180, 24, 58, 0.3);
	background: #fff3f5;
}

.hw-wc :is(.woocommerce-MyAccount-content, .woocommerce-order) table :is(.woocommerce-button.view, a.button.view) {
	border: 1px solid var(--hw-light-border-strong);
	background: var(--hw-surface);
	color: var(--hw-text) !important;
	box-shadow: none;
}

.hw-wc .woocommerce-order table .button {
	--hw-btn-h: 36px;
	padding: 0.35rem 0.9rem;
	font-size: var(--hw-fs-xs);
}

/* Status dot in front of the status text of the orders & subscriptions tables. */
.hw-wc tr[class*="--status-"] :is(.woocommerce-orders-table__cell-order-status, .woocommerce-orders-table__cell-subscription-status, .subscription-status)::before {
	content: "";
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	margin-right: 0.45rem;
	border-radius: 50%;
	background: currentColor;
	vertical-align: 0.1em;
}

/* Payment methods (Subscriptions swaps "delete" for "wcs_deletion_error" when the card pays a subscription). */
.woocommerce-MyAccount-paymentMethods :is(.button.delete, .button.wcs_deletion_error) {
	border: 1px solid transparent;
	background: transparent;
	color: var(--hw-danger-text) !important;
	box-shadow: none;
}

.woocommerce-MyAccount-paymentMethods :is(.button.delete, .button.wcs_deletion_error):hover { border-color: rgba(180, 24, 58, 0.3); background: #fff3f5; }

.woocommerce-MyAccount-paymentMethods .button.default {
	border: 1px solid var(--hw-light-border-strong);
	background: var(--hw-surface);
	color: var(--hw-text) !important;
	box-shadow: none;
}

.woocommerce-MyAccount-paymentMethods .payment-method-method { font-weight: 650; color: var(--hw-text); }

.woocommerce-MyAccount-content > a.button { justify-self: start; }

.woocommerce-MyAccount-content > a.button:is(.hw-pm-add, [href*="payment"]) {
	justify-self: start;
	--hw-btn-h: 46px;
	padding-inline: 1.4rem;
	font-size: var(--hw-fs-sm);
}

.woocommerce-MyAccount-content > a.button:is(.hw-pm-add, [href*="payment"])::before {
	content: "+";
	margin-right: 0.45rem;
	font-size: 1.2em;
	line-height: 1;
}

/* Subscription page: key / value card. */
.woocommerce-MyAccount-content table.subscription_details th,
.woocommerce-MyAccount-content table.subscription_details td { padding-block: 0.85rem; }

.woocommerce-MyAccount-content table.subscription_details tr > td:first-child {
	width: 38%;
	color: var(--hw-text-muted);
	font-weight: 600;
}

.woocommerce-MyAccount-content table.subscription_details tr:first-child td:last-child { font-weight: 700; color: var(--hw-success-text); }

.wcs-auto-renew-toggle { vertical-align: middle; }

.woocommerce-MyAccount-content mark {
	display: inline;
	padding: 0.1rem 0.5rem;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	border-radius: var(--hw-radius-pill);
	background: var(--hw-light-bg-2);
	color: var(--hw-text);
	font-weight: 700;
}

.woocommerce-MyAccount-content mark.order-status { background: #ebf8ef; color: var(--hw-success-text); }

.woocommerce-MyAccount-content .woocommerce-pagination {
	display: flex;
	gap: 0.5rem;
}

/* Addresses. */
.woocommerce-MyAccount-content .woocommerce-Addresses {
	display: grid;
	gap: 1rem;
}

.woocommerce-MyAccount-content .woocommerce-Address { padding: var(--hw-wc-card-pad); }

.woocommerce-MyAccount-content .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.woocommerce-MyAccount-content .woocommerce-Address-title h2 { margin: 0; }

.woocommerce-MyAccount-content .woocommerce-Address-title a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--hw-light-border-strong);
	border-radius: var(--hw-radius-pill);
	font-size: var(--hw-fs-xs);
	font-weight: 650;
	color: var(--hw-text) !important;
	text-decoration: none;
}

.woocommerce-MyAccount-content .woocommerce-Address-title a:hover { border-color: var(--hw-light-text); }

.woocommerce-MyAccount-content address {
	font-style: normal;
	line-height: 1.75;
	color: var(--hw-text-muted);
}

.woocommerce-MyAccount-content > p:first-child:not([class]) {
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-sm);
}

/* Forms of the area (address, account details): a card. */
.woocommerce-MyAccount-content > form,
.woocommerce-MyAccount-content .woocommerce-address-fields,
.woocommerce-MyAccount-content #add_payment_method {
	padding: var(--hw-wc-card-pad);
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-wc-card-radius);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-sm);
}

.woocommerce-MyAccount-content form .woocommerce-address-fields {
	padding: 0;
	border: 0;
	box-shadow: none;
}

.woocommerce-MyAccount-content form > h2:first-child,
.woocommerce-MyAccount-content form > h3:first-child { margin: 0 0 1.25rem; }

.woocommerce-EditAccountForm > .form-row,
.woocommerce-EditAccountForm > fieldset,
.woocommerce-EditAccountForm > p:not(.form-row-first):not(.form-row-last),
.woocommerce-EditAccountForm > .clear,
.woocommerce-EditAccountForm > div { grid-column: 1 / -1; }

.woocommerce-EditAccountForm > .form-row-first { grid-column: 1; }

.woocommerce-EditAccountForm > .form-row-last { grid-column: 2; }

.woocommerce-EditAccountForm fieldset {
	margin: 0.5rem 0 1.25rem;
	padding: 1.25rem;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius);
	background: var(--hw-light-bg);
}

.woocommerce-EditAccountForm legend {
	padding: 0 0.4rem;
	font-family: var(--hw-font-head);
	font-weight: 750;
}

.woocommerce-EditAccountForm em,
.woocommerce-EditAccountForm span em {
	font-size: var(--hw-fs-xs);
	color: var(--hw-text-muted);
}

.woocommerce-MyAccount-content form .button[type="submit"],
.woocommerce-MyAccount-content form button[type="submit"]:not(.hw-btn--secondary) {
	--hw-btn-h: 50px;
	padding-inline: 1.6rem;
	font-size: var(--hw-fs-sm);
}

/* Order & subscription details. */
.woocommerce-MyAccount-content .woocommerce-order-details,
.woocommerce-MyAccount-content .woocommerce-customer-details,
.woocommerce-MyAccount-content .woocommerce-subscription-details,
.woocommerce-order .woocommerce-order-details,
.woocommerce-order .woocommerce-customer-details { margin-top: 0.5rem; }

.woocommerce-order-details .woocommerce-table__product-name a { color: var(--hw-text) !important; font-weight: 650; }

.woocommerce-customer-details address {
	padding: 1.15rem 1.3rem;
	font-style: normal;
	line-height: 1.75;
	color: var(--hw-text-muted);
}

.woocommerce-customer-details--email,
.woocommerce-customer-details--phone { margin: 0.25rem 0 0; }

.hw-order-vat {
	margin: 0.5rem 0 0;
	font-size: var(--hw-fs-sm);
	color: var(--hw-text-muted);
}

/* "Order again" is not the main task of the order page: a quiet outline button. */
.woocommerce-MyAccount-content .order-again { margin: 1.25rem 0 0; }

.hw-wc .woocommerce-MyAccount-content .order-again .button {
	--hw-btn-h: 40px;
	padding: 0.45rem 1.1rem;
	border: 1px solid var(--hw-light-border-strong);
	background: var(--hw-surface);
	color: var(--hw-text) !important; /* beats `.hw-wc a.button:not(…)` (white text). */
	font-size: var(--hw-fs-xs);
	box-shadow: none;
}

.hw-wc .woocommerce-MyAccount-content .order-again .button:hover { border-color: var(--hw-light-text); background: var(--hw-surface); }

.hw-invoice-link {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.9rem;
	margin: 0.75rem 0 0;
}

/* Domains page without any domain (provisioning markup): an empty-state card. */
.woocommerce-MyAccount-content .hw-domains__empty {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin: 0;
	padding: var(--hw-wc-card-pad);
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-wc-card-radius);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-sm);
	color: var(--hw-text-muted);
}

.woocommerce-MyAccount-content .hw-domains__empty a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.45rem 1.1rem;
	border-radius: var(--hw-radius-pill);
	background: var(--hw-gradient-cta);
	color: #fff !important;
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-xs);
	font-weight: 700;
	text-decoration: none;
}

/* Wordfence two-factor endpoint: its own markup inside a card. */
.woocommerce-MyAccount-content > #wfls-management-embedded,
.woocommerce-MyAccount-content > .wfls-management-embedded {
	padding: var(--hw-wc-card-pad);
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-wc-card-radius);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-sm);
}

/* =========================================================================
 * 8. Order received
 * ====================================================================== */

.hw-thanks {
	display: grid;
	gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

.hw-thanks__hero {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.25rem 1.5rem;
	align-items: start;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	overflow: hidden;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius-xl);
	background:
		radial-gradient(600px 240px at 0% 0%, rgba(55, 194, 103, 0.1), transparent 70%),
		radial-gradient(520px 260px at 100% 0%, rgba(1, 200, 239, 0.08), transparent 70%),
		var(--hw-surface);
	box-shadow: var(--hw-light-shadow-lg);
}

.hw-thanks__hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 3px;
	border-radius: 0 0 4px 4px;
	background: var(--hw-gradient-brand);
}

.hw-thanks__hero--failed {
	background:
		radial-gradient(600px 240px at 0% 0%, rgba(180, 24, 58, 0.08), transparent 70%),
		var(--hw-surface);
}

.hw-thanks__icon {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: linear-gradient(160deg, #2bb463, #157a3c);
	color: #fff;
	box-shadow: 0 0 0 8px rgba(21, 122, 60, 0.1), 0 14px 30px -12px rgba(21, 122, 60, 0.75);
}

.hw-thanks__hero--failed .hw-thanks__icon {
	background: linear-gradient(160deg, #e2456a, #b4183a);
	box-shadow: 0 0 0 8px rgba(180, 24, 58, 0.1), 0 14px 30px -12px rgba(180, 24, 58, 0.7);
}

.hw-thanks__icon .hw-icon { width: 1.7rem; height: 1.7rem; }

@media (prefers-reduced-motion: no-preference) {
	.hw-thanks__icon { animation: hw-wc-pop 680ms var(--hw-ease) both; }
}

@keyframes hw-wc-pop {
	from { opacity: 0; transform: scale(0.6); }
	to { opacity: 1; transform: none; }
}

.hw-thanks__status { margin: 0 0 0.5rem; }

.hw-thanks__title {
	margin: 0;
	font-size: var(--hw-fs-2xl);
	letter-spacing: -0.03em;
}

.hw-thanks__lead {
	max-width: 62ch;
	margin: 0.4rem 0 0;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-md);
}

.hw-thanks .woocommerce-thankyou-order-received {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Order overview: a receipt strip at the bottom of the confirmation card. */
.hw-thanks__overview {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0;
	margin: 0.5rem 0 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius);
	background: var(--hw-light-bg);
	list-style: none;
}

.hw-thanks__overview li {
	display: grid;
	gap: 0.25rem;
	padding: 0.95rem 1.1rem;
	border-right: 1px dashed var(--hw-light-border-strong);
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-2xs);
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hw-thanks__overview li:last-child { border-right: 0; }

.hw-thanks__overview strong {
	color: var(--hw-text);
	font-size: var(--hw-fs-sm);
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	overflow-wrap: anywhere;
	font-variant-numeric: tabular-nums;
}

.hw-thanks__overview .total strong {
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-lg);
	font-weight: 800;
}

/* Next steps: a vertical timeline. */
.hw-thanks__next {
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius-xl);
	background: var(--hw-surface);
	box-shadow: var(--hw-light-shadow-sm);
}

.hw-thanks__subtitle {
	margin: 0 0 1.5rem;
	font-size: var(--hw-fs-xl);
	letter-spacing: -0.02em;
}

.hw-thanks__steps {
	position: relative;
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hw-step;
}

.hw-thanks__step {
	position: relative;
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	gap: 1.1rem;
	align-items: start;
	padding-bottom: 1.6rem;
}

.hw-thanks__step:last-child { padding-bottom: 0; }

.hw-thanks__step:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 3.25rem;
	bottom: 0.25rem;
	left: calc(1.5rem - 1px);
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--hw-light-border-strong), var(--hw-light-border));
}

.hw-thanks__step-icon {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid var(--hw-border);
	border-radius: 14px;
	background: var(--hw-light-bg);
	color: var(--hw-light-cyan);
}

.hw-thanks__step-icon .hw-icon { width: 1.3rem; height: 1.3rem; }

.hw-thanks__step-icon::after {
	counter-increment: hw-step;
	content: counter(hw-step);
	position: absolute;
	top: -0.45rem;
	right: -0.45rem;
	display: grid;
	place-items: center;
	width: 1.3rem;
	height: 1.3rem;
	border: 2px solid var(--hw-surface);
	border-radius: 50%;
	background: var(--hw-light-text);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 800;
}

.hw-thanks__step--action .hw-thanks__step-icon {
	border-color: transparent;
	background: linear-gradient(145deg, #ff6a8b, #de2c54);
	color: #fff;
	box-shadow: 0 12px 24px -12px rgba(222, 44, 84, 0.9);
}

.hw-thanks__step--action > div {
	padding: 1rem 1.15rem;
	border: 1px solid rgba(222, 44, 84, 0.25);
	border-radius: var(--hw-radius);
	background: #fff6f8;
}

.hw-thanks__step h3 {
	margin: 0.55rem 0 0;
	font-size: var(--hw-fs-md);
	letter-spacing: -0.01em;
}

.hw-thanks__step--action h3 { margin-top: 0; }

.hw-thanks__step p {
	margin: 0.3rem 0 0;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-sm);
}

.hw-thanks__step p:has(.hw-btn),
.hw-thanks__step p:has(.hw-link-arrow) { margin-top: 0.75rem; }

.hw-thanks__step .hw-btn .hw-icon { --hw-icon-size: 1em; }

.hw-thanks__details {
	display: grid;
	gap: 1.25rem;
	min-width: 0;
}

.hw-thanks__details:empty { display: none; }

.woocommerce-order-details__title,
.woocommerce-column__title,
.woocommerce-order h2 {
	font-size: var(--hw-fs-lg);
	letter-spacing: -0.02em;
}

.woocommerce-order .woocommerce-order-details > h2,
.woocommerce-order .woocommerce-customer-details > h2,
.woocommerce-order section > h2 { margin: 0 0 0.85rem; }

/* =========================================================================
 * 9. Plan page (dark)
 * ====================================================================== */

.hw-plan-hero {
	padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(3rem, 2rem + 4vw, 5.5rem);
	overflow: hidden;
}

.hw-plan-hero__grid {
	position: relative;
	display: grid;
	gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
	align-items: start;
}

@media (min-width: 1000px) {
	.hw-plan-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
	}
}

.hw-plan-hero__intro {
	min-width: 0;
	padding-top: 0.5rem;
}

.hw-plan-hero__intro .hw-breadcrumbs {
	margin-bottom: 1.25rem;
}

.hw-plan-hero__title {
	margin: 0.3rem 0 0.8rem;
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-4xl);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.hw-plan-hero__lead {
	max-width: 56ch;
	margin: 0 0 1.75rem;
}

.hw-plan-order {
	position: relative;
	display: grid;
	gap: 1.1rem;
	padding: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
	border: 1px solid transparent;
	border-radius: var(--hw-radius-lg);
	background:
		linear-gradient(180deg, rgba(23, 26, 92, 0.98), rgba(12, 14, 66, 0.98)) padding-box,
		linear-gradient(160deg, rgba(1, 200, 239, 0.85), rgba(243, 53, 91, 0.6) 55%, rgba(255, 255, 255, 0.08)) border-box;
	box-shadow: var(--hw-shadow-lg);
}

@media (min-width: 1000px) {
	.hw-plan-order {
		position: sticky;
		top: calc(var(--hw-header-h) + 20px);
	}
}

.hw-plan-order__title {
	margin: 0;
	font-size: var(--hw-fs-lg);
	line-height: 1.3;
}

.hw-plan-order__switch {
	margin: 0;
}

.hw-terms {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	border: 0;
}

.hw-term {
	position: relative;
	display: block;
	cursor: pointer;
}

.hw-term__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.hw-term__box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.15rem 0.75rem;
	padding: 0.8rem 1rem 0.8rem 2.85rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.03);
	transition: border-color var(--hw-dur) var(--hw-ease), background-color var(--hw-dur) var(--hw-ease), box-shadow var(--hw-dur) var(--hw-ease);
}

.hw-term__box::before {
	content: "";
	position: absolute;
	top: 1.05rem;
	left: 1rem;
	width: 1.15rem;
	height: 1.15rem;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	transition: border-color var(--hw-dur) var(--hw-ease), box-shadow var(--hw-dur) var(--hw-ease);
}

.hw-term:hover .hw-term__box {
	border-color: rgba(1, 200, 239, 0.45);
}

.hw-term__input:checked + .hw-term__box {
	border-color: var(--hw-cyan);
	background: rgba(1, 200, 239, 0.1);
	box-shadow: 0 0 0 1px var(--hw-cyan), 0 14px 32px -20px rgba(1, 200, 239, 0.7);
}

.hw-term__input:checked + .hw-term__box::before {
	border-color: var(--hw-cyan);
	box-shadow: inset 0 0 0 4px #0c0e42, inset 0 0 0 10px var(--hw-cyan);
}

.hw-term__input:focus-visible + .hw-term__box {
	outline: 3px solid var(--hw-focus);
	outline-offset: 2px;
}

.hw-term.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.hw-term__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	grid-column: 1;
}

.hw-term__label {
	font-family: var(--hw-font-head);
	font-weight: 750;
	font-size: var(--hw-fs-md);
	color: #fff;
}

.hw-term__flag {
	padding: 0.1rem 0.5rem;
	border-radius: var(--hw-radius-pill);
	background: var(--hw-cyan);
	color: #031a29;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.hw-term__pct {
	padding: 0.1rem 0.45rem;
	border-radius: 6px;
	background: rgba(243, 53, 91, 0.16);
	color: #ff8aa2;
	font-size: var(--hw-fs-xs);
	font-weight: 800;
}

.hw-term__price {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	text-align: right;
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-xl);
	font-weight: 800;
	color: #fff;
	white-space: nowrap;
}

.hw-term__unit {
	display: block;
	font-family: var(--hw-font-body);
	font-size: var(--hw-fs-xs);
	font-weight: 500;
	color: var(--hw-text-muted);
}

.hw-term__billed {
	grid-column: 1;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-xs);
}

.hw-term__save {
	grid-column: 1 / -1;
	justify-self: start;
	margin-top: 0.3rem;
	padding: 0.15rem 0.55rem;
	border-radius: var(--hw-radius-pill);
	background: rgba(55, 194, 103, 0.14);
	color: #7be3a1;
	font-size: var(--hw-fs-xs);
	font-weight: 700;
}

.hw-plan-order__summary {
	display: grid;
	gap: 0.4rem;
	padding: 0.95rem 1rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.hw-plan-order__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-sm);
}

.hw-plan-order__total strong {
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-xl);
	color: #fff;
}

.hw-plan-order__renew {
	margin: 0;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-xs);
	line-height: 1.55;
}

.hw-plan-order__submit {
	min-height: 58px;
}

.hw-plan-order__submit[aria-busy="true"] {
	opacity: 0.75;
	pointer-events: none;
}

.hw-plan-order__trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-xs);
}

.hw-plan-order__trust li {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.hw-plan-order__trust .hw-icon {
	width: 0.95rem;
	height: 0.95rem;
	color: var(--hw-cyan);
}

.hw-plan-features__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.hw-plan-feature .hw-icon-tile {
	margin-bottom: 0.35rem;
}

.hw-plan-feature .hw-checklist {
	margin: 0.25rem 0 0;
}

.hw-plan-compare .hw-table-wrap {
	margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.hw-plan-compare__table {
	min-width: 640px;
}

.hw-plan-compare__table th,
.hw-plan-compare__table td {
	text-align: center;
	vertical-align: middle;
}

.hw-plan-compare__table tbody th {
	text-align: left;
	font-weight: 600;
	color: var(--hw-text-muted);
}

.hw-plan-compare__table thead th {
	padding-block: 1.1rem;
}

.hw-plan-compare__name {
	display: block;
	font-family: var(--hw-font-head);
	font-size: var(--hw-fs-md);
	color: var(--hw-text);
}

.hw-plan-compare__price {
	display: block;
	margin: 0.2rem 0 0.4rem;
	font-weight: 500;
	font-size: var(--hw-fs-sm);
	color: var(--hw-text-muted);
}

.hw-plan-compare__price .hw-term__unit {
	display: inline;
}

.hw-plan-compare__table .is-current {
	background: rgba(1, 200, 239, 0.07);
}

.hw-plan-compare__table thead .is-current {
	box-shadow: inset 0 3px 0 var(--hw-cyan);
}

.hw-plan-faq .hw-accordion {
	margin-top: 1.75rem;
}

/* Mobile sticky order bar. */
.hw-plan-sticky {
	position: fixed;
	z-index: 40;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem var(--hw-gutter) calc(0.75rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--hw-border);
	background: rgba(5, 6, 49, 0.94);
	backdrop-filter: blur(10px);
	transform: translateY(110%);
	transition: transform var(--hw-dur) var(--hw-ease);
}

.hw-plan-sticky.is-visible {
	transform: translateY(0);
}

.hw-plan-sticky[hidden] {
	display: none;
}

.hw-plan-sticky__text {
	display: grid;
	min-width: 0;
	font-size: var(--hw-fs-sm);
	color: var(--hw-text-muted);
}

.hw-plan-sticky__text strong {
	color: #fff;
}

.hw-plan-sticky__text .hw-term__unit {
	display: inline;
}

@media (min-width: 1000px) {
	.hw-plan-sticky {
		display: none !important;
	}
}

/* =========================================================================
 * 10. Plan switching
 * ====================================================================== */

.hw-switch__plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0 1rem;
	padding: 0;
	list-style: none;
}

.hw-switch__plan {
	display: grid;
	gap: 0.75rem;
	align-content: start;
	padding: 1.4rem;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius-lg);
	background: var(--hw-surface);
}

.hw-switch__plan.is-current {
	border-color: #0078a8;
	box-shadow: 0 0 0 3px rgba(0, 120, 168, 0.12);
}

.hw-switch__plan .hw-btn {
	margin-top: auto;
}

.hw-switch__plan-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.hw-switch__name {
	margin: 0;
	font-size: var(--hw-fs-lg);
}

.hw-switch__price {
	margin: 0;
	color: var(--hw-text-muted);
}

.hw-switch__price strong {
	color: var(--hw-text);
	font-size: var(--hw-fs-lg);
}

.hw-switch__note,
.hw-switch__ref {
	color: var(--hw-text-muted);
	font-size: var(--hw-fs-sm);
}

.hw-switch__subs {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hw-switch__subs li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.2rem;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-radius);
	background: var(--hw-surface);
}

.hw-switch__login {
	max-width: 560px;
}

/* =========================================================================
 * 11. Small screens, motion, print
 * ====================================================================== */

@media (max-width: 959.98px) {
	/* Account menu as a scrollable row of pills. */
	.woocommerce-MyAccount-navigation.hw-account-nav ul {
		display: flex;
		gap: 0.35rem;
		overflow-x: auto;
		padding: 0.4rem;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
	}

	.woocommerce-MyAccount-navigation.hw-account-nav ul::-webkit-scrollbar { display: none; }

	.woocommerce-MyAccount-navigation.hw-account-nav li {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.woocommerce-MyAccount-navigation.hw-account-nav a {
		padding: 0.55rem 0.85rem;
		white-space: nowrap;
	}

	.woocommerce-MyAccount-navigation.hw-account-nav li.woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0;
		padding: 0;
		border: 0;
	}

	.hw-account-nav__help { display: none; }
}

@media (max-width: 999.98px) {
	.hw-checkout__aside { order: -1; }

	/* Cart: totals and the checkout button right under the lines, the upsell after them. */
	.woocommerce-cart .woocommerce > .hw-upsell { order: 3; }

	.woocommerce-cart .woocommerce > .cart-collaterals { order: 2; }
}

@media (max-width: 640px) {
	.hw-wc { --hw-wc-card-pad: 1.1rem; }

	.hw-checkout .woocommerce-billing-fields__field-wrapper,
	.woocommerce-address-fields__field-wrapper,
	.woocommerce-EditAccountForm { grid-template-columns: minmax(0, 1fr); }

	.hw-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
	.hw-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
	.woocommerce-address-fields__field-wrapper > .form-row-first,
	.woocommerce-address-fields__field-wrapper > .form-row-last,
	.woocommerce-EditAccountForm > .form-row-first,
	.woocommerce-EditAccountForm > .form-row-last { grid-column: 1; }

	.hw-checkout__title { font-size: var(--hw-fs-lg); }

	/* Cart lines: icon + name on top, amount + remove below. */
	.woocommerce-cart-form .shop_table tr.cart_item {
		position: relative;
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas: "thumb name" "thumb subtotal";
		gap: 0.5rem 0.85rem;
		align-items: start;
	}

	.woocommerce-cart-form .shop_table tr.cart_item td.product-name { padding-right: 2.75rem !important; }

	.woocommerce-cart-form .product-name .hw-period-select { margin-right: -2.75rem; max-width: none; }

	.woocommerce-cart-form .product-remove {
		position: absolute;
		top: 1.15rem;
		right: 0;
	}

	.woocommerce-cart-form .product-subtotal { text-align: left; }

	.hw-line-icon { width: 2.6rem; height: 2.6rem; border-radius: 12px; }

	.woocommerce-cart-form td.actions .coupon .input-text { max-width: none; }

	.hw-upsell { grid-template-columns: minmax(0, 1fr); }

	.hw-upsell__visual,
	.hw-upsell__icon { display: none; }

	.hw-services__item {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 0.5rem 0.85rem;
		align-items: start;
	}

	.hw-services__main { grid-column: 2 / -1; }

	.hw-services__item .hw-status { grid-column: 2; grid-row: 2; justify-self: start; align-self: center; }

	.hw-services__manage {
		grid-column: 3;
		grid-row: 2;
	}

	.hw-kpi__icon { display: none; }

	.hw-kpi { grid-template-areas: "label label" "value value" "note note"; }

	.woocommerce-MyAccount-navigation.hw-account-nav ul {
		-webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
		mask-image: linear-gradient(90deg, #000 82%, transparent);
	}

	.hw-orders-mini__item {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 0.4rem 0.75rem;
	}

	.hw-orders-mini__item .hw-status { grid-column: 2; grid-row: 2; justify-self: start; }

	.hw-orders-mini__action { grid-column: 3; grid-row: 2; }

	.hw-kpi { padding: 0.9rem; }

	.hw-kpi__value { font-size: var(--hw-fs-xl); }

	.hw-kpi__value--date { font-size: var(--hw-fs-md); }

	.hw-thanks__hero { grid-template-columns: minmax(0, 1fr); }

	.hw-term__box { padding-left: 2.6rem; }

	.hw-term__price { font-size: var(--hw-fs-lg); }

	.hw-thanks__overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.hw-thanks__overview li { border-right: 0; border-bottom: 1px dashed var(--hw-light-border-strong); }

	.hw-thanks__step { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.9rem; }

	.hw-thanks__step-icon { width: 2.6rem; height: 2.6rem; }

	.hw-thanks__step:not(:last-child)::before { left: calc(1.3rem - 1px); top: 2.85rem; }

	.hw-dash__panel-visual { display: none; }

	.hw-login__visual { --hw-illus-max: 160px; }

	/* Account tables as stacked cards. */
	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) thead,
	.woocommerce-order table.shop_table_responsive thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) tr,
	.woocommerce-order table.shop_table_responsive tr {
		display: block;
		padding: 0.4rem 0;
		border-bottom: 1px solid var(--hw-border);
	}

	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) tr:last-child { border-bottom: 0; }

	/* Label floated left, value right-aligned as one inline run ("18,14 € pour 1 article" stays together). */
	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) td,
	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) th,
	.woocommerce-order table.shop_table_responsive td,
	.woocommerce-order table.shop_table_responsive th {
		display: block;
		padding: 0.45rem 1rem;
		border: 0;
		text-align: right;
		overflow-wrap: anywhere;
	}

	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) :is(td, th)::after,
	.woocommerce-order table.shop_table_responsive :is(td, th)::after {
		content: "";
		display: table;
		clear: both;
	}

	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) td[data-title]::before,
	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) th[data-title]::before,
	.woocommerce-order table.shop_table_responsive td[data-title]::before {
		content: attr(data-title);
		float: left;
		margin-right: 1rem;
		font-weight: 650;
		color: var(--hw-text-muted);
		text-align: left;
	}

	/* Status cells: label left, then dot + status on the right (the dot moves to ::after). */
	.hw-wc tr[class*="--status-"] td:is(.woocommerce-orders-table__cell-order-status, .woocommerce-orders-table__cell-subscription-status) {
		display: flex;
		align-items: center;
		gap: 0.45rem;
	}

	.hw-wc tr[class*="--status-"] td:is(.woocommerce-orders-table__cell-order-status, .woocommerce-orders-table__cell-subscription-status)::before {
		order: -2;
		display: inline;
		width: auto;
		height: auto;
		margin: 0 auto 0 0;
		border-radius: 0;
		background: none;
		float: none;
		vertical-align: baseline;
		font-size: var(--hw-fs-sm);
	}

	.hw-wc tr[class*="--status-"] td:is(.woocommerce-orders-table__cell-order-status, .woocommerce-orders-table__cell-subscription-status)::after {
		content: "";
		order: -1;
		display: block;
		flex: 0 0 auto;
		width: 0.45rem;
		height: 0.45rem;
		border-radius: 50%;
		background: currentColor;
	}

	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) td.woocommerce-orders-table__cell-order-actions,
	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) td.subscription-actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 0.4rem;
		text-align: left;
	}

	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) td.woocommerce-orders-table__cell-order-actions :is(.button, a),
	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) td.subscription-actions :is(.button, a) { margin: 0; }

	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) td.woocommerce-orders-table__cell-order-actions::before,
	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) td.subscription-actions::before,
	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) td.woocommerce-orders-table__cell-order-actions::after,
	.woocommerce-MyAccount-content table.shop_table_responsive:not(.hw-domains__table) td.subscription-actions::after { display: none; }

	/* Subscription key / value card: label above its value. */
	.woocommerce-MyAccount-content table.subscription_details,
	.woocommerce-MyAccount-content table.subscription_details tbody { display: block; }

	.woocommerce-MyAccount-content table.subscription_details tr {
		display: grid;
		gap: 0.2rem;
		padding: 0.75rem 1rem;
		border-bottom: 1px solid var(--hw-border-soft);
	}

	.woocommerce-MyAccount-content table.subscription_details tr:last-child { border-bottom: 0; }

	.woocommerce-MyAccount-content table.subscription_details td {
		display: block;
		padding: 0 !important;
		border: 0;
	}

	.woocommerce-MyAccount-content table.subscription_details tr > td:first-child {
		width: auto;
		font-size: var(--hw-fs-xs);
	}

	.woocommerce-MyAccount-content table.subscription_details td .button { margin: 0.35rem 0.35rem 0 0; }

	/* Account navigation pills: the focus ring stays inside the scroller. */
	.woocommerce-MyAccount-navigation.hw-account-nav a:focus-visible { outline-offset: -2px; }
}

@media (prefers-reduced-motion: reduce) {
	.hw-term__box,
	.hw-quick__link,
	.hw-upsell__plan,
	.hw-plan-sticky,
	.hw-domain-step__chevron .hw-icon,
	.hw-dash__more .hw-icon,
	.wc-proceed-to-checkout .checkout-button::after {
		transition: none;
	}

	.hw-quick__link:hover,
	.hw-upsell__plan:hover { transform: none; }
}

@media (prefers-contrast: more) {
	.hw-receipt,
	.cart_totals,
	.hw-dash__card,
	.hw-kpi,
	.hw-checkout__block { border-color: var(--hw-light-border-strong); box-shadow: none; }

	.hw-wc-hero__title { background: none; color: var(--hw-text); }
}

@media print {
	.hw-account-nav,
	.hw-plan-sticky,
	.hw-wc-hero__trust,
	.hw-checkout__reassure,
	.hw-thanks__next .hw-btn {
		display: none !important;
	}

	.hw-wc-hero { background: none; padding-block: 1rem; }

	.hw-wc-hero__title { background: none; color: #000; }
}

.hw-switch__plan .hw-checklist li::first-letter { text-transform: uppercase; }

/* ---------- Code promo (checkout): prompt + inline field in one card ---------- */
.hw-coupon {
	margin: 0 0 0.75rem;
	border: 1px solid var(--hw-border);
	border-radius: var(--hw-wc-card-radius, 18px);
	background: var(--hw-surface);
	overflow: hidden;
	transition: box-shadow var(--hw-dur, 0.2s) var(--hw-ease, ease), border-color var(--hw-dur, 0.2s) var(--hw-ease, ease);
}

.hw-coupon:focus-within { border-color: var(--hw-border-strong, var(--hw-border)); box-shadow: var(--hw-light-shadow); }

.hw-coupon .woocommerce-info {
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.woocommerce-checkout .hw-coupon .checkout_coupon {
	max-width: none;
	margin: 0;
	padding: 0 1.1rem 1rem 3rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.hw-coupon__field {
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
	max-width: 520px;
}

.hw-coupon__field .hw-coupon__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 0 0.95rem;
	border: 1px solid var(--hw-border);
	border-radius: 12px;
	background: var(--hw-surface-2, #fff);
	color: var(--hw-input-text, var(--hw-text));
	font-family: var(--hw-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hw-coupon__field .hw-coupon__input::placeholder {
	font-family: var(--hw-font-body);
	letter-spacing: 0;
	text-transform: none;
	color: var(--hw-text-muted);
	opacity: 0.8;
}

.hw-coupon__field .hw-coupon__input:focus {
	outline: none;
	border-color: var(--hw-cyan-deep, #00a2c2);
	box-shadow: 0 0 0 3px rgba(1, 200, 239, 0.18);
}

/* Secondary action: the pay button stays the only pink CTA of the page. */
.woocommerce-checkout .hw-coupon__field .hw-coupon__btn {
	flex: 0 0 auto;
	height: 46px;
	margin: 0;
	padding: 0 1.15rem;
	border: 1px solid var(--hw-text, #0b0d2e) !important;
	border-radius: 12px;
	background: var(--hw-text, #0b0d2e) !important;
	color: var(--hw-bg-surface-invert, #fff) !important;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: none !important;
	transform: none !important;
	white-space: nowrap;
	cursor: pointer;
}

.woocommerce-checkout .hw-coupon__field .hw-coupon__btn:hover { opacity: 0.88; }

.woocommerce-checkout .hw-coupon__field .hw-coupon__btn:focus-visible {
	outline: 2px solid var(--hw-cyan-deep, #00a2c2);
	outline-offset: 2px;
}

.woocommerce-checkout .hw-coupon__field .hw-coupon__btn::before,
.woocommerce-checkout .hw-coupon__field .hw-coupon__btn::after { content: none !important; }

@media (max-width: 520px) {
	.woocommerce-checkout .hw-coupon .checkout_coupon { padding: 0 1rem 1rem; }
}

/* CyberPanel credentials (dashboard): value chip + « Afficher / Masquer » + « Copier ». */
.hw-dash__cred > span:first-child { flex: 0 0 auto; }
.hw-dash__cred-val { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.45rem; min-width: 0; }
.hw-dash__cred code {
	padding: 0.3rem 0.6rem;
	border: 1px solid rgba(1, 200, 239, 0.22);
	border-radius: 8px;
	background: rgba(1, 200, 239, 0.06);
	font-size: var(--hw-fs-xs);
}
.hw-secret__mask { letter-spacing: 0.12em; }
.hw-dash__btn { min-height: 34px; }
.hw-dash__btn .hw-icon { width: 15px; height: 15px; }
.hw-dash__btn[aria-pressed="true"] { color: var(--hw-text); border-color: rgba(1, 200, 239, 0.5); }
@media (max-width: 560px) {
	.hw-dash__cred-val { justify-content: flex-start; width: 100%; }
	.hw-dash__cred code { flex: 1 1 100%; }
}
