/*
 * One Page Checkout Pro skin and the EU legal guarantee notice (inc/commerce/checkout-skin.php). OPC drops the theme
 * styles on its pages, so this file depends on tokens.css only and is kept by the takeover. No checkout in the design:
 * the OPC variables take the L&L tokens (font, ink, petrol buttons, radii, form borders like forms.css). The account's
 * address and account forms use the checkout's fields (form.opcw, inc/commerce/account-forms.php) and take them too.
 */
:root :is(body.opcw, .ll-account .opcw) {
	--opcw-font: var(--ll-font);
	--opcw-font-display: var(--ll-font);
	--opcw-font-mono: var(--ll-font); /* trust line "Sichere Zahlung …": Arboria only, the design has no monospace */
	--opcw-ink: var(--ll-ink);
	--opcw-text: var(--ll-ink-soft);
	--opcw-muted: var(--ll-ink-mute);
	--opcw-faint: var(--ll-ink-mute);
	--opcw-line: var(--ll-border-strong);
	--opcw-line-strong: var(--ll-petrol);
	--opcw-accent: var(--ll-petrol);
	--opcw-primary: var(--ll-brand);
	--opcw-primary-ink: var(--ll-brand-ink);
	--opcw-bg: var(--ll-white);
	--opcw-surface: var(--ll-white);
	--opcw-bg-summary: var(--ll-beige);
	--opcw-error: var(--ll-error);
	--opcw-success: var(--ll-ok);
	--opcw-radius: var(--ll-r-md);
	--opcw-radius-sm: var(--ll-r-sm);
	--opcw-btn-radius: var(--ll-r-full);
	--opcw-shadow: var(--ll-shadow-card);
}

/* Logo (the brand SVG has no intrinsic width: the flex header shrank it to 0). */
:root body.opcw .opcw-logo__img {
	flex: none;
	width: auto;
	height: var(--ll-logo-h-scrolled);
	max-height: none;
}

/* Legal guarantee: quiet text button below the buy box and the order button. */
:root .ll-legal-guarantee {
	margin: var(--ll-space-12) 0 0;
	font-size: var(--ll-small);
	text-align: center;
}
:root .ll-legal-guarantee--product {
	text-align: left;
}
:root .ll-legal-guarantee__trigger,
:root body.opcw .ll-legal-guarantee__trigger {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ll-ink-soft);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: var(--ll-focus-offset);
	cursor: pointer;
}
:root .ll-legal-guarantee__trigger:hover {
	color: var(--ll-ink);
}
:root .ll-legal-guarantee__notice {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: var(--ll-space-16);
	border: 1px solid var(--ll-border);
	border-radius: var(--ll-r-sm);
}
:root .ll-legal-guarantee__links {
	margin: 0;
	padding-left: var(--ll-space-16);
	font-size: var(--ll-small);
}
:root .ll-legal-guarantee__links a {
	color: var(--ll-petrol);
	text-decoration: underline;
}

/* The dialog on OPC pages (elsewhere pdp.css styles .ll-cmp-dialog). */
:root body.opcw .ll-cmp-dialog {
	width: min(var(--ll-dialog), calc(100% - 2 * var(--ll-pad-x)));
	max-height: calc(100dvh - 2 * var(--ll-space-24));
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--ll-r-xl);
	background: var(--ll-white);
	color: var(--ll-ink);
	box-shadow: var(--ll-shadow-float);
	overflow: auto;
}
:root body.opcw .ll-cmp-dialog::backdrop {
	background: var(--ll-scrim);
}
:root body.opcw .ll-cmp {
	position: relative;
	padding: clamp(var(--ll-space-24), 4vw, var(--ll-space-40));
}
:root body.opcw .ll-cmp h2 {
	margin: 0 var(--ll-space-40) var(--ll-space-16) 0;
	font-size: var(--ll-h3);
	line-height: var(--ll-lh-tight);
}
:root body.opcw .ll-cmp__close {
	position: absolute;
	top: var(--ll-space-16);
	right: var(--ll-space-16);
	display: grid;
	place-items: center;
	width: var(--ll-tap);
	height: var(--ll-tap);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--ll-ink-mute);
	cursor: pointer;
}
:root body.opcw .ll-cmp__close:hover {
	background: var(--ll-beige);
	color: var(--ll-ink);
}
:root body.opcw .ll-cmp__close svg {
	width: var(--ll-icon-m);
	height: var(--ll-icon-m);
}

/* Legal overlay (body.opcw-legal): no scripts there, so the AGB switch cannot work; legal.css shows the zone's version. */
:root body.opcw-legal .ll-agb-switch {
	display: none;
}
:root body.opcw-legal {
	font-family: var(--ll-font);
	color: var(--ll-ink);
}

/* Order notices (inc/commerce/order-notices.php): thank-you page, panel "andere Rechnungsadresse". */
:root .ll-order-notice {
	margin: var(--ll-space-16) 0;
	padding: var(--ll-space-8) var(--ll-space-12);
	border-radius: var(--ll-r-sm);
	background: var(--ll-beige);
	color: var(--ll-ink-soft);
	font-size: var(--ll-small);
}
/* Checkout, above the billing address: info icon beside the text, the countdown's spacing below. */
:root body.opcw .ll-order-notice--ship {
	display: flex;
	align-items: center;
	gap: var(--ll-space-8);
	margin: 0 0 var(--ll-gap-box);
}
:root .ll-order-notice__icon {
	flex: none;
	width: var(--ll-icon-s);
	height: var(--ll-icon-s);
}

/* "Kreditkarte": Visa and Mastercard only (payments.php), in one row beside the method. */
.ll-card-brands {
	display: flex;
	flex: none;
	align-items: center;
	gap: var(--ll-space-4);
}
/* Stripe's brand SVGs have a viewBox only: OPC's `width: auto` would collapse them. */
:root body.opcw #payment .ll-card-brands img {
	width: auto;
	height: var(--ll-payment-h-sm);
	aspect-ratio: var(--ll-ratio-card-logo);
}
/* TWINT like Rechnung and «Kreditkarte» (payments.php; mame's own checkout stylesheet is not loaded): the title with
   mame's badge right after it at the card logos' height and gap, the description below like Rechnung's line, shown
   only while TWINT is selected. Classic engine: title and description in .opcw-option__label, the badge in
   .ll-card-brands after it; Block Mode: mame's label holds title and badge in one span. */
:root body.opcw #payment .payment_method_mame_twint > label {
	display: grid;
	grid-template-columns: max-content 1fr;
	align-items: center;
	gap: 0 var(--ll-space-12);
}
:root body.opcw #payment .payment_method_mame_twint .opcw-option__label {
	display: contents;
}
:root body.opcw #payment .payment_method_mame_twint .ll-card-brands {
	grid-area: 1 / 2;
}
:root body.opcw #payment .payment_method_mame_twint .opcw-option__sub {
	grid-row: 2;
	grid-column: 1 / -1;
}
:root body.opcw #payment .payment_method_mame_twint:not(:has(> input:checked)) .opcw-option__sub {
	display: none;
}
:root body.opcw #payment .payment_method_mame_twint .wc-block-components-payment-method-label {
	display: flex;
	align-items: center;
	gap: var(--ll-space-12);
}
:root body.opcw #payment .ll-card-brands .ll-twint-logo,
:root body.opcw #payment .payment_method_mame_twint .wc-block-components-payment-method-label img {
	height: var(--ll-payment-h-sm);
	margin: 0;
	aspect-ratio: var(--ll-ratio-twint-logo);
	border-radius: var(--ll-r-hairline);
}
/* The one other rule of mame's checkout stylesheet (its checkout script hides elements with it). */
.mame_tw_hidden {
	display: none;
}

/* House-number hint under the street field (inc/commerce/checkout-extras.php), kingnature's layout. */
:root body.opcw .ll-hn-hint {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--ll-space-8);
	color: var(--ll-error);
	font-size: var(--ll-tiny);
	line-height: var(--ll-lh-snug);
}
:root body.opcw .form-row > .ll-hn-hint {
	margin: var(--ll-space-4) var(--ll-space-2) 0;
}
:root body.opcw .ll-hn-hint__confirm {
	min-height: var(--ll-space-24);
	margin: 0;
	padding: 0 var(--ll-space-2);
	border: 0;
	background: none;
	color: var(--ll-ink);
	font: inherit;
	font-weight: var(--ll-weight-medium);
	text-decoration: underline;
	text-underline-offset: var(--ll-space-2);
	cursor: pointer;
}
:root body.opcw .ll-hn-hint__confirm:focus-visible {
	outline: var(--ll-focus-w) solid var(--ll-petrol);
	outline-offset: var(--ll-space-2);
}

/* Newsletter card on the thank-you page (inc/commerce/thankyou.php): aside on desktop, main column on phones. */
:root body.opcw .ll-ty-nl {
	margin: var(--ll-space-24) 0 0;
	padding: var(--ll-space-16) var(--ll-space-24) var(--ll-space-24);
	border: 1px solid var(--opcw-line);
	border-radius: var(--opcw-radius);
	background: var(--opcw-surface);
	color: var(--opcw-text);
}
:root body.opcw .ll-ty-nl--m {
	display: none;
}
@media (max-width: 999.98px) {
	:root body.opcw .ll-ty-nl--m {
		display: block;
		margin: 0 0 var(--ll-space-16);
	}
}
:root body.opcw .ll-ty-nl__title {
	margin: 0 0 var(--ll-space-8);
	color: var(--ll-ink);
	font-size: var(--ll-body);
	font-weight: var(--ll-weight-bold);
	line-height: var(--ll-lh-snug);
}
:root body.opcw .ll-ty-nl__text,
:root body.opcw .ll-ty-nl__consent,
:root body.opcw .ll-ty-nl__status {
	margin: 0;
	font-size: var(--ll-small);
	line-height: var(--ll-lh-snug);
}
:root body.opcw .ll-ty-nl__consent {
	margin-top: var(--ll-space-12);
}
:root body.opcw .ll-ty-nl__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--ll-tap);
	margin: var(--ll-space-12) 0 0;
	padding: 0 var(--ll-space-24);
	border: 1px solid var(--opcw-line-strong);
	border-radius: var(--opcw-btn-radius);
	background: var(--opcw-surface);
	color: var(--ll-ink);
	font: inherit;
	font-size: var(--ll-small);
	font-weight: var(--ll-weight-medium);
	cursor: pointer;
}
:root body.opcw .ll-ty-nl__btn:hover:not(:disabled) {
	background: var(--opcw-bg-summary);
}
:root body.opcw .ll-ty-nl__btn:focus-visible {
	outline: var(--ll-focus-w) solid var(--ll-petrol);
	outline-offset: var(--ll-focus-offset);
}
:root body.opcw .ll-ty-nl__btn:disabled {
	opacity: var(--ll-disabled-opacity);
	cursor: not-allowed;
}
:root body.opcw .ll-ty-nl__form[aria-busy="true"] .ll-ty-nl__btn {
	cursor: wait;
}
:root body.opcw .ll-ty-nl__status {
	margin-top: var(--ll-space-12);
}
:root body.opcw .ll-ty-nl__status:empty {
	display: none;
}
:root body.opcw .ll-ty-nl__status:focus {
	outline: none;
}
:root body.opcw .ll-ty-nl.is-done .ll-ty-nl__status {
	color: var(--ll-ok);
}
:root body.opcw .ll-ty-nl.is-error .ll-ty-nl__status {
	color: var(--ll-error);
}
:root body.opcw .ll-ty-nl.is-done .ll-ty-nl__consent,
:root body.opcw .ll-ty-nl.is-done .ll-ty-nl__btn {
	display: none;
}

/* Delivery estimate next to a shipping rate (inc/commerce/delivery-checkout.php), kingnature's layout. */
:root body.opcw .ll-eta {
	color: var(--ll-ink-mute);
	font-weight: var(--ll-weight-book);
}
:root body.opcw .ll-eta__when {
	white-space: nowrap;
}
:root body.opcw .ll-eta__date {
	color: var(--ll-ink-soft);
	font-weight: var(--ll-weight-medium);
	font-variant-numeric: tabular-nums;
}
:root body.opcw .ll-eta__date--soon {
	color: var(--ll-ok);
}
:root body.opcw .ll-eta--inline {
	display: inline-block;
	font-size: var(--ll-tiny);
	line-height: var(--ll-lh-snug);
}
@media (max-width: 689.98px) {
	:root body.opcw .ll-eta--inline {
		display: block;
	}
}

/* Shipping of the later Spar-Abo deliveries (onepagecheckout/part-shipping.php): a second group of cards below the
   order's, with room above its heading. */
:root body.opcw .ll-abo-ship {
	margin-top: var(--ll-gap-group);
}
/* Package headings above a group of shipping cards («Erste Lieferung», «Versand der Spar-Abo-Lieferungen», One Page
   Checkout's «Shipment 2»): its own margin below loses against its rule `.opcw p { margin: 0 }`. */
:root body.opcw .opcw-ship-pkg {
	margin: 0 0 var(--ll-gap-label);
}

/* Dispatch countdown under the shipping heading. */
:root body.opcw .ll-countdown {
	display: flex;
	align-items: center;
	gap: var(--ll-space-8);
	margin: 0 0 var(--ll-gap-box);
	padding: var(--ll-space-12) var(--ll-space-16);
	border-radius: var(--opcw-radius);
	background: var(--opcw-bg-summary);
	color: var(--ll-ink-soft);
	font-size: var(--ll-small);
	line-height: var(--ll-lh-snug);
}
:root body.opcw .ll-countdown[hidden] {
	display: none;
}
/* Icon in the text colour (Niels 2026-11-19), centred on the text like the info icon of the ship-elsewhere notice. */
:root body.opcw .ll-countdown__icon {
	flex: none;
	width: var(--ll-icon-s);
	height: var(--ll-icon-s);
}
:root body.opcw .ll-countdown__time {
	color: var(--ll-ink);
	font-weight: var(--ll-weight-medium);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Spar-Abo totals in the summary (woocommerce/checkout/recurring-totals.php): label/value lines like the totals. */
:root body.opcw .ll-rec {
	margin: var(--ll-space-16) 0 0;
	padding: var(--ll-space-12) 0 0;
	border-top: 1px solid var(--opcw-line);
	font-size: var(--ll-small);
	line-height: var(--ll-lh-snug);
}
:root body.opcw .ll-rec__title {
	margin: 0 0 var(--ll-space-8);
	color: var(--ll-ink);
	font-weight: var(--ll-weight-medium);
}
:root body.opcw .ll-rec__row {
	display: flex;
	justify-content: space-between;
	gap: var(--ll-space-12);
	padding: var(--ll-space-2) 0;
}
:root body.opcw .ll-rec__k {
	color: var(--ll-ink-soft);
}
:root body.opcw .ll-rec__v {
	color: var(--ll-ink);
	text-align: right;
}
:root body.opcw .ll-rec__row.order-total .ll-rec__v {
	font-weight: var(--ll-weight-medium);
}
/* «Erste Verlängerung: 19. Januar 2027» on one line (Niels 2026-11-19): the label beside it wraps instead. */
:root body.opcw .ll-rec .first-payment-date {
	white-space: nowrap;
}
:root body.opcw .ll-rec__v small,
:root body.opcw .ll-rec .first-payment-date {
	display: block;
	color: var(--ll-ink-mute);
	font-size: var(--ll-tiny);
	font-weight: var(--ll-weight-book);
}

/* Smart Coupons: list of available coupons in the order summary (inc/commerce/coupons.php). The plugin colours its
   cards with --sc-color1–3 on :root (text, background, accent); the container sets them to L&L tokens. */
:root body.opcw .ll-available-coupons {
	--sc-color1: var(--ll-ink);
	--sc-color2: var(--ll-white);
	--sc-color3: var(--ll-petrol);
	margin-top: var(--ll-space-16);
	font-family: var(--ll-font);
	color: var(--ll-ink);
}
:root body.opcw .ll-available-coupons #coupons_list {
	margin: 0;
	border: var(--ll-border-w) solid var(--ll-border-strong);
	border-radius: var(--ll-r-md);
	background: var(--ll-white);
	overflow: hidden;
}
:root body.opcw .ll-available-coupons .sc-accordion-header {
	padding: var(--ll-space-12) var(--ll-space-16);
	font-size: var(--ll-small);
	font-weight: var(--ll-weight-medium);
}
:root body.opcw .ll-available-coupons .sc-accordion-header.open {
	border-bottom: var(--ll-border-w) solid var(--ll-border);
}
:root body.opcw .ll-available-coupons .sc-accordion-content.open {
	background: var(--ll-white);
}
:root body.opcw .ll-available-coupons #sc-cc {
	padding: var(--ll-space-12) var(--ll-space-16);
}
:root body.opcw .ll-available-coupons .sc-coupon {
	border-width: var(--ll-border-w);
	border-radius: var(--ll-r-sm);
	transition: background-color var(--ll-t-fast) var(--ll-ease);
	transform: none;
}
:root body.opcw .ll-available-coupons .font-mono {
	font-family: var(--ll-font); /* the design has no monospace (see --opcw-font-mono) */
	letter-spacing: normal;
}
:root body.opcw .ll-available-coupons .sc-coupon:hover {
	background-color: var(--ll-petrol-soft);
	transform: none;
}

/* Keyboard focus as on the rest of the site (Niels 2026-11-23): OPC's ring (thinner, closer, --opcw-accent) takes the
   site ring's width, colour and distance. The quantity stepper, the coupon chip and the skip link keep their ring
   inside. */
:root .opcw :is(a, button, input, select, textarea):not(.opcw-qty__btn, .opcw-qty__n, .opcw-chip__x, .skip-link):focus-visible {
	outline-width: var(--ll-focus-w);
	outline-color: var(--ll-focus-color);
	outline-offset: var(--ll-focus-offset);
}
/* Selects show the field's focus style (border and halo) like the text fields, without a ring on top. */
:root .opcw select:focus-visible {
	outline: none;
}
/* «Details» of a subscription in the summary had no focus state; the coupon toggle's ring is rounded. */
:root .opcw .wc-block-components-panel__button:focus-visible {
	outline: var(--ll-focus-w) solid var(--ll-focus-color);
	outline-offset: var(--ll-focus-offset);
	border-radius: var(--ll-r-focus);
}
:root .opcw .opcw-coupon__toggle:focus-visible {
	border-radius: var(--ll-r-focus);
}

/* VAT number behind «+ Firma» (inc/commerce/vat-exemption.php): no «(optional)», as kingnature. */
#woocommerce_eu_vat_number_field .optional {
	display: none;
}

/* Message below the total when the VAT number removes the VAT (inc/commerce/vat-exemption.php), styled like the
   «inkl. MwSt.» line it replaces. */
.opcw-paytotal__amount .ll-vat-exempt,
.opcw-totals__row--grand dd .ll-vat-exempt {
	display: block;
	margin-top: var(--ll-space-2);
	font-family: var(--opcw-font);
	font-size: var(--ll-tiny);
	font-weight: var(--ll-weight-book);
	color: var(--opcw-muted);
}
