/*
 * Styles for the LGnet order wizard widget. Only what Elementor's own
 * Global Colors/Typography controls (see class-widget.php's register_controls)
 * can't express: card selection state, the progress bar segments,
 * inline error colour, and structural layout. Colours are CSS custom
 * properties fed by the widget's style controls, falling back to the exact
 * DESIGN-TOKENS.md values when the widget is previewed outside Elementor.
 *
 * One visual language for every product: the same card, the same icon
 * family (Flow::icon_svg — ink line + one accent shape, on an accent-tint
 * tile), the same step chrome from the product overview to the last step.
 */

.lgw-wizard {
	--lgw-ink: #0a0e1a;
	--lgw-accent: #f2c94c;
	--lgw-link: #0057ff;
	--lgw-body: #4a5468;
	--lgw-muted-2: #77839a;
	--lgw-placeholder: #9aa5b8;
	--lgw-border: #e4e8f0;
	--lgw-border-strong: #dde3ed;
	--lgw-hairline: #f0f3f8;
	--lgw-surface: #f6f8fc;
	--lgw-accent-tint-2: #fdf7e6;
	--lgw-error: #c0392b;

	font-family: 'Public Sans',"Public Sans Fallback", system-ui, sans-serif;
	color: var(--lgw-ink);
}

.lgw-wizard * {
	box-sizing: border-box;
}

.lgw-title {
	font: 700 clamp(26px, 3.7vw, 45px) / 1.08 'Archivo',"Archivo Fallback", sans-serif;
	letter-spacing: -0.03em;
	color: var(--lgw-ink);
	margin: 0 0 clamp(28px, 3.6vw, 44px);
	overflow-wrap: break-word;
	hyphens: auto;
}

.lgw-journey {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 clamp(24px, 3vw, 36px);
	padding: 0;
	list-style: none;
}

.lgw-journey-step {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	padding: 11px 12px;
	border-radius: 12px;
	background: var(--lgw-surface);
	font: 500 13px/1.25 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
}

.lgw-journey-number {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	border: 1px solid var(--lgw-border-strong);
	border-radius: 50%;
	background: #fff;
}

.lgw-journey-step.is-current { color: var(--lgw-ink); background: var(--lgw-accent-tint-2); }
.lgw-journey-step.is-current .lgw-journey-number { border-color: var(--lgw-accent); background: var(--lgw-accent); font-weight: 700; }
.lgw-journey-step.is-done { color: var(--lgw-body); }
.lgw-journey-step.is-done .lgw-journey-number { border-color: var(--lgw-ink); background: var(--lgw-ink); color: #fff; }

.lgw-variant-group { scroll-margin-top: 24px; }

.lgw-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin-bottom: 14px;
}

.lgw-counter {
	font: 600 13px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lgw-link);
}

.lgw-stepname {
	font: 600 13px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lgw-body);
}

.lgw-meta-separator {
	color: var(--lgw-placeholder);
}

.lgw-progress {
	display: flex;
	gap: 8px;
	margin-bottom: clamp(28px, 3.4vw, 40px);
}

.lgw-progress-seg {
	flex: 1;
	height: 5px;
	border-radius: 999px;
	background: var(--lgw-border-strong);
	transition: background 0.3s;
}

.lgw-progress-seg.is-done {
	background: var(--lgw-accent);
}

.lgw-card {
	background: #fff;
	border: 1px solid var(--lgw-border);
	border-radius: 20px;
	padding: clamp(26px, 3.4vw, 48px);
}

.lgw-notice {
	font: 500 14px/1.5 'Public Sans',"Public Sans Fallback", sans-serif;
	background: var(--lgw-surface);
	border-radius: 12px;
	padding: 12px 16px;
	margin: 0 0 20px;
}

.lgw-notice-error {
	background: #fdecea;
	color: var(--lgw-error);
}

.lgw-step-heading {
	font: 600 clamp(24px, 2.6vw, 32px) / 1.2 'Archivo',"Archivo Fallback", sans-serif;
	letter-spacing: -0.022em;
	color: var(--lgw-ink);
	margin: 0 0 10px;
	overflow-wrap: break-word;
	hyphens: auto;
}

.lgw-intro {
	font: 400 16px/1.6 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-body);
	margin: 0 0 28px;
	text-wrap: pretty;
}

/* Icon family (Flow::icon_svg): ink line + one accent shape. */
.lgw-icon {
	display: block;
	flex: 0 0 auto;
}

.lgw-ic-accent {
	fill: currentColor;
}

.lgw-product-context {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin: 0 0 24px;
	padding: 0 0 20px;
	border-bottom: 1px solid var(--lgw-hairline);
}

.lgw-product-context-item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.lgw-product-context-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	color: var(--lgw-ink);
}

.lgw-product-context-icon .lgw-icon {
	width: 32px;
	height: 32px;
}

.lgw-product-context-item strong {
	font: 600 clamp(22px, 2.3vw, 28px) / 1.2 'Archivo',"Archivo Fallback", sans-serif;
	letter-spacing: -0.02em;
	color: var(--lgw-ink);
}

/* The product context already provides the divider in these detail views. */
.lgw-product-context + .lgw-subblock {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* Consistent monochrome icon treatment across product and option views. */
.lgw-variant-legend-icon,
.lgw-summary-icon,
.lgw-option-icon,
.lgw-upload-icon {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	color: var(--lgw-ink);
	background: transparent;
	transition: background 0.18s;
}

.lgw-options {
	display: grid;
	gap: 12px;
	margin-bottom: 32px;
}

.lgw-options > .lgw-field-error {
	grid-column: 1 / -1;
}

.lgw-options-2 {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.lgw-options-3 {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.lgw-options-4 {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Card inputs stay real, focusable form controls — only visually replaced. */
.lgw-variant input,
.lgw-variant-none input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.lgw-option:has(input:focus-visible),
.lgw-variant:has(input:focus-visible),
.lgw-variant-none:has(input:focus-visible) {
	outline: 2px solid var(--lgw-link);
	outline-offset: 2px;
}

/* ---- Abo page (step 1): all four product groups on one page ---- */

.lgw-product-selection-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 32%);
	align-items: start;
	gap: clamp(24px, 3vw, 38px);
}

.lgw-product-list {
	min-width: 0;
}

.lgw-cart {
	position: sticky;
	top: 150px;
	max-height: calc(100vh - 175px);
	min-width: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
}

.lgw-cart-toggle {
	display: none;
}

.lgw-variant-group {
	min-width: 0;
	margin: 0 0 30px;
	padding: 0;
	border: 0;
}

.lgw-variant-group + .lgw-variant-group {
	padding-top: 28px;
	border-top: 1px solid var(--lgw-hairline);
}

/* Floated so the legend lays out as normal content below the group's top
   border, instead of sitting on it (the default fieldset legend position). */
.lgw-variant-legend {
	float: left;
	width: 100%;
	display: flex;
	flex-wrap: wrap; /* "Auswahl entfernen" drops below on narrow phones */
	align-items: center;
	gap: 8px 12px;
	padding: 0;
	margin-bottom: 8px;
	font: 600 20px/1.2 'Archivo',"Archivo Fallback", sans-serif;
	color: var(--lgw-ink);
}

.lgw-variant-legend-icon {
	width: 42px;
	height: 42px;
	border-radius: 0;
}

.lgw-variant-legend-icon .lgw-icon {
	width: 30px;
	height: 30px;
}

.lgw-variant-note {
	clear: both;
	font: 400 14px/1.5 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
	margin: 0 0 16px;
}

/* Deselects the product; only shown once one of its Abos is chosen. */
.lgw-variant-none {
	display: none;
	align-items: center;
	margin-left: auto;
	font: 500 14px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-link);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.lgw-variant-none:hover {
	color: var(--lgw-ink);
}

.lgw-variant-group.has-selection .lgw-variant-none,
.lgw-variant-group:has(.lgw-variant input:checked) .lgw-variant-none {
	display: inline-flex;
}

.lgw-variants {
	clear: both;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	margin-bottom: 0;
}

.lgw-variant {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid var(--lgw-border-strong);
	border-radius: 16px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.lgw-variant:hover {
	border-color: var(--lgw-accent);
}

.lgw-variant.is-selected,
.lgw-variant:has(input:checked) {
	border-color: var(--lgw-accent);
	box-shadow: inset 0 0 0 1px var(--lgw-accent);
	background: var(--lgw-accent-tint-2);
}

/* Radio indicator, top right. */
.lgw-variant::after {
	content: '';
	position: absolute;
	top: 18px;
	right: 18px;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--lgw-border-strong);
	border-radius: 999px;
	background: #fff;
	box-sizing: border-box;
	transition: border 0.18s;
}

.lgw-variant.is-selected::after,
.lgw-variant:has(input:checked)::after {
	border: 5px solid var(--lgw-ink);
}

.lgw-variant-badge {
	position: absolute;
	top: -9px;
	left: 18px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--lgw-ink);
	font: 600 11px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	letter-spacing: 0.04em;
	color: #fff;
}

.lgw-variant-name {
	padding-right: 26px;
	font: 600 17px/1.2 'Archivo',"Archivo Fallback", sans-serif;
	color: var(--lgw-ink);
}

.lgw-variant-feature {
	flex: 1;
	font: 400 13px/1.45 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
}

.lgw-variant-price {
	margin-top: auto;
	font: 400 13px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-body);
}

.lgw-variant-price strong {
	font: 700 18px/1 'Archivo',"Archivo Fallback", sans-serif;
	color: var(--lgw-ink);
}

.lgw-selection-summary {
	display: grid;
	gap: 12px;
	margin-top: 6px;
	padding: 18px 22px;
	border: 1px solid var(--lgw-border-strong);
	border-radius: 14px 14px 0 0;
	background: #fff;
}

.lgw-selection-summary span {
	font: 600 12px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lgw-muted-2);
}

.lgw-selection-summary-items {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lgw-selection-summary-items li {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 10px 0;
	border-top: 1px solid var(--lgw-hairline);
}

.lgw-selection-summary-items li strong {
	font: 600 16px/1.4 'Archivo',"Archivo Fallback", sans-serif;
	color: var(--lgw-ink);
}

.lgw-selection-summary-items li span {
	font: 500 14px/1.4 'Public Sans',"Public Sans Fallback", sans-serif;
	letter-spacing: 0;
	text-transform: none;
	color: var(--lgw-body);
	white-space: nowrap;
}

.lgw-selection-summary-items .lgw-selection-empty {
	font: 500 14px/1.4 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
}

.lgw-total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 12px;
	padding: 18px 22px;
	border-radius: 0 0 14px 14px;
	background: var(--lgw-surface);
}

.lgw-total span {
	font: 600 12px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lgw-muted-2);
}

.lgw-total strong {
	font: 700 22px/1 'Archivo',"Archivo Fallback", sans-serif;
	color: var(--lgw-ink);
}

/* ---- Option cards (Nummer, SIM, Anschlussart, TV-Boxen, Festnetz) ---- */

.lgw-option {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
	padding: 20px 22px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--lgw-border-strong);
	cursor: pointer;
	transition: border-color 0.18s, background 0.18s;
}

.lgw-option:hover {
	border-color: var(--lgw-accent);
}

.lgw-option input[type='radio'] {
	position: absolute;
	top: 16px;
	right: 16px;
	margin: 0;
}

.lgw-option.is-selected,
.lgw-option:has(input:checked) {
	background: var(--lgw-accent-tint-2);
	border: 2px solid var(--lgw-accent);
	padding: 19px 21px; /* keep outer box size stable across the 1px -> 2px border change */
}

.lgw-option-icon {
	width: 44px;
	height: 44px;
	border-radius: 13px;
}

.lgw-option-icon .lgw-icon {
	width: 24px;
	height: 24px;
}

.lgw-option.is-selected .lgw-option-icon,
.lgw-option:has(input:checked) .lgw-option-icon {
	background: #fff;
}

.lgw-option-title {
	font: 600 18px/1.2 'Archivo',"Archivo Fallback", sans-serif;
	color: var(--lgw-ink);
}

.lgw-option-subtitle {
	font: 400 14px/1.4 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
}

.lgw-subblock {
	border-top: 1px solid var(--lgw-hairline);
	padding-top: 28px;
	margin-top: 4px;
}

.lgw-subblock h3 {
	font: 600 20px/1.25 'Archivo',"Archivo Fallback", sans-serif;
	color: var(--lgw-ink);
	margin: 0 0 8px;
	overflow-wrap: break-word;
	hyphens: auto;
}

.lgw-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

/* Swiss address order: street + house number, then postal code + city. */
.lgw-address-fields {
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

.lgw-address-strasse,
.lgw-address-ort {
	grid-column: span 9;
}

.lgw-address-hausnr,
.lgw-address-plz {
	grid-column: span 3;
}

.lgw-address-fields > .lgw-field:not(.lgw-address-field) {
	grid-column: span 4;
}

.lgw-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.lgw-field-label {
	font: 500 14px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	color: #28324a;
}

.lgw-field input[type='text'],
.lgw-field input[type='email'],
.lgw-field input[type='tel'],
.lgw-field input[type='date'],
.lgw-field select {
	height: 50px;
	padding: 0 16px;
	border: 1px solid var(--lgw-border-strong);
	border-radius: 12px;
	font: 400 16px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	background: #fff;
	color: var(--lgw-ink);
	width: 100%;
}

.lgw-field input::placeholder {
	color: var(--lgw-placeholder);
}

.lgw-field input:focus,
.lgw-field select:focus {
	outline: none;
	border-color: var(--lgw-accent);
}

.lgw-fields-kontakt input:focus,
.lgw-fields-kontakt select:focus {
	border-color: var(--lgw-link);
}

.lgw-field.has-error input,
.lgw-field.has-error select {
	border-color: var(--lgw-error);
}

.lgw-field-error {
	font: 400 14px/1.4 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-error);
}

.lgw-field-hint {
	font: 400 13px/1.45 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
}

/* The single Wunschtermin at the end of the order, below the overview. */
.lgw-termin {
	grid-template-columns: minmax(0, 360px);
	margin: 0 0 22px;
}

.lgw-upload-note {
	font: 400 13px/1.6 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
	margin: 12px 0 0;
}

.lgw-field input[type='file'] {
	padding: 12px 16px;
	border: 1px solid var(--lgw-border-strong);
	border-radius: 12px;
	font: 400 14px/1.4 'Public Sans',"Public Sans Fallback", sans-serif;
	background: #fff;
	color: var(--lgw-ink);
	width: 100%;
}

.lgw-uploaded-note {
	font: 400 13px/1.4 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
}

/* SIM & identity step — same chrome as every other step, only the cards differ. */
.lgw-step-sim .lgw-sim-options {
	gap: 16px;
	margin-top: 26px;
	margin-bottom: 42px;
}

.lgw-step-sim .lgw-option {
	min-height: 156px;
	padding: 26px 26px 22px 86px;
}

.lgw-step-sim .lgw-option.is-selected,
.lgw-step-sim .lgw-option:has(input:checked) {
	padding: 25px 25px 21px 85px;
}

.lgw-step-sim .lgw-option-icon {
	position: absolute;
	left: 24px;
	top: 24px;
}

.lgw-step-sim .lgw-option input[type='radio'] {
	appearance: none;
	width: 26px;
	height: 26px;
	border: 1px solid var(--lgw-border-strong);
	border-radius: 50%;
	background: #fff;
}

.lgw-step-sim .lgw-option input[type='radio']:checked {
	border: 7px solid var(--lgw-ink);
}

.lgw-sim-badge {
	align-self: flex-start;
	margin-top: 14px;
	padding: 7px 12px;
	border-radius: 9px;
	background: var(--lgw-surface);
	font: 600 13px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	color: #394258;
}

.lgw-option.is-selected .lgw-sim-badge,
.lgw-option:has(input:checked) .lgw-sim-badge {
	background: #f8e8b1;
}

.lgw-id-block {
	padding-top: 38px;
}

.lgw-document-type {
	margin: 26px 0 24px;
}

.lgw-segmented {
	display: inline-flex;
	padding: 5px;
	border-radius: 14px;
	background: var(--lgw-surface);
}

.lgw-segmented input {
	position: absolute;
	opacity: 0;
}

.lgw-segmented span {
	display: block;
	padding: 11px 20px;
	border-radius: 10px;
	font: 600 15px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
	cursor: pointer;
}

.lgw-segmented input:checked + span {
	background: #fff;
	color: var(--lgw-ink);
	box-shadow: 0 2px 8px rgba(31, 42, 68, .1);
}

.lgw-dropzone {
	display: flex;
	min-height: 210px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px dashed #cbd5e6;
	border-radius: 18px;
	background: #fbfcfe;
	text-align: center;
	cursor: pointer;
}

.lgw-dropzone:hover,
.lgw-dropzone:focus-within {
	border-color: var(--lgw-accent);
	background: var(--lgw-accent-tint-2);
}

.lgw-dropzone input[type='file'] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.lgw-upload-icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
}

.lgw-upload-icon .lgw-icon {
	width: 24px;
	height: 24px;
}

.lgw-dropzone:hover .lgw-upload-icon,
.lgw-dropzone:focus-within .lgw-upload-icon {
	background: #fff;
}

.lgw-dropzone.has-file {
	border-style: solid;
	border-color: var(--lgw-accent);
}

.lgw-upload-title {
	font: 600 16px/1.3 'Public Sans',"Public Sans Fallback", sans-serif;
}

.lgw-upload-subtitle {
	font: 400 14px/1.4 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
}

.lgw-id-back.is-hidden {
	display: none;
}

.lgw-id-back {
	margin-top: 16px;
}

.lgw-step-sim .lgw-upload-note {
	display: flex;
	gap: 12px;
	margin-top: 18px;
	padding: 16px 18px;
	border: 1px solid #f1d789;
	border-radius: 14px;
	background: #fffdf7;
	font-size: 14px;
}

.lgw-upload-note-icon .lgw-icon {
	width: 20px;
	height: 20px;
	color: var(--lgw-ink);
}

.lgw-step-sim .lgw-nav {
	align-items: center;
}

.lgw-file-status {
	margin-left: auto;
	font: 400 14px/1.3 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
}

.lgw-step-sim .lgw-btn-next:disabled {
	background: #bdc6d7;
	cursor: not-allowed;
	transform: none;
}

@media (max-width: 600px) {
	.lgw-journey { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
	.lgw-journey-step { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 8px 4px; font-size: 11px; line-height: 1.2; text-align: center; }
	.lgw-journey-number { width: 26px; height: 26px; flex-basis: 26px; }
	.lgw-meta { display: none; }
	.lgw-backlink { margin-bottom: calc(110px + env(safe-area-inset-bottom)); }
	.lgw-step-sim .lgw-option {
		min-height: 140px;
	}
	.lgw-file-status { order: -1; width: 100%; margin: 0; padding-bottom: 2px; font-size: 12px; text-align: center; }
}

.lgw-subblock.is-hidden {
	display: none;
}

.lgw-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 600 16px/1.2 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-ink);
	cursor: pointer;
	margin-bottom: 8px;
}

.lgw-consent {
	align-items: flex-start;
}

.lgw-consent input {
	flex: 0 0 auto;
	margin-top: 2px;
}

.lgw-consent-copy {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.lgw-consent-title {
	font: 600 16px/1.25 'Public Sans',"Public Sans Fallback", sans-serif;
}

.lgw-consent-title a {
	color: var(--lgw-link);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lgw-consent-title a:hover {
	color: var(--lgw-ink);
}

.lgw-consent-info {
	font: 400 12px/1.5 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
}

.lgw-lieferung-block {
	display: none;
}

.lgw-subblock:has(.lgw-lieferung-toggle:checked) .lgw-lieferung-block {
	display: block;
}

.lgw-fineprint {
	font: 400 13px/1.7 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
	margin: 0;
}

.lgw-summary {
	background: var(--lgw-surface);
	border-radius: 16px;
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lgw-summary-label {
	font: 600 12px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lgw-muted-2);
}

/* ---- "Ihre Bestellung": combined order overview with prices ---- */

.lgw-order-summary {
	margin: 20px 0 24px;
}

.lgw-summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.lgw-summary-edit {
	font: 600 14px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lgw-summary-edit:hover {
	color: var(--lgw-ink);
}

.lgw-summary-items {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lgw-summary-item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--lgw-border);
}

.lgw-summary-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: transparent;
}

@media (max-width: 900px) {
	.lgw-product-selection-layout {
		grid-template-columns: 1fr;
	}

	.lgw-cart {
		position: static;
		max-height: none;
		overflow: visible;
	}
}

@media (max-width: 600px) {
	.lgw-step-prod .lgw-cart {
		display: none;
		position: fixed;
		z-index: 1001;
		left: 12px;
		right: 12px;
		bottom: calc(82px + env(safe-area-inset-bottom));
		max-height: min(62vh, 520px);
		overflow-y: auto;
		border: 1px solid var(--lgw-border-strong);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 -8px 32px rgba(10, 14, 26, .2);
	}

	.lgw-step-prod .lgw-cart.is-open {
		display: block;
	}

	.lgw-cart-toggle {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 12px 16px;
		border: 0;
		background: #fff;
		color: var(--lgw-ink);
		text-align: left;
		cursor: pointer;
	}

	.lgw-cart-toggle strong,
	.lgw-cart-toggle small {
		display: block;
	}

	.lgw-cart-toggle strong {
		font: 600 15px/1.3 'Archivo',"Archivo Fallback", sans-serif;
	}

	.lgw-cart-toggle small {
		margin-top: 2px;
		font: 500 13px/1.3 'Public Sans',"Public Sans Fallback", sans-serif;
		color: var(--lgw-body);
	}

	.lgw-cart-toggle-action {
		font: 600 14px/1 'Public Sans',"Public Sans Fallback", sans-serif;
		color: var(--lgw-link);
	}

	.lgw-step-prod .lgw-cart:not(.is-open) .lgw-selection-summary,
	.lgw-step-prod .lgw-cart:not(.is-open) .lgw-total {
		display: none;
	}

	.lgw-step-prod .lgw-cart .lgw-selection-summary,
	.lgw-step-prod .lgw-cart .lgw-total {
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.lgw-counter {
		max-width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

.lgw-summary-icon .lgw-icon {
	width: 22px;
	height: 22px;
}

.lgw-summary-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.lgw-summary-text strong {
	font: 600 16px/1.2 'Archivo',"Archivo Fallback", sans-serif;
	color: var(--lgw-ink);
}

.lgw-summary-text small {
	font: 400 13px/1.4 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-muted-2);
}

.lgw-summary-price {
	font: 600 15px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-ink);
	white-space: nowrap;
}

.lgw-summary-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-top: 2px;
}

.lgw-summary-total span {
	font: 600 15px/1.2 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-ink);
}

.lgw-summary-total strong {
	font: 700 22px/1 'Archivo',"Archivo Fallback", sans-serif;
	color: var(--lgw-ink);
}

.lgw-nav {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: clamp(28px, 3.4vw, 40px);
	padding-top: clamp(22px, 2.6vw, 30px);
	border-top: 1px solid var(--lgw-hairline);
}

.lgw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	padding: 0 34px;
	border: 0;
	border-radius: 999px;
	font: 600 16px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	cursor: pointer;
	transition: background 0.18s, color 0.18s, transform 0.18s;
	text-decoration: none;
}

.lgw-btn-next {
	background: var(--lgw-ink);
	color: #fff;
}

.lgw-btn-next:hover {
	background: var(--lgw-accent);
	color: var(--lgw-ink);
	transform: translateY(-2px);
}

.lgw-btn-back {
	height: 56px;
	padding: 0 30px;
	border: 1px solid var(--lgw-border-strong);
	background: #fff;
	color: var(--lgw-ink);
	font: 500 16px/1 'Public Sans',"Public Sans Fallback", sans-serif;
}

.lgw-btn-back:not(:disabled):hover {
	border-color: var(--lgw-ink);
}

.lgw-btn-back:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.lgw-nav-cart {
	display: none;
}

.lgw-backlink {
	margin: clamp(26px, 3vw, 38px) 0 clamp(36px, 5vw, 64px);
	text-align: center;
}

.lgw-backlink a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 400 14px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	color: var(--lgw-placeholder);
	text-decoration: none;
}

.lgw-backlink a:hover {
	color: var(--lgw-body);
}

/* Honeypot: hidden from sighted users and kept out of the tab order,
   but still a real form field so a scripted bot filling every input finds it. */
.lgw-hp {
	display: none !important;
}

.lgw-wizard-done {
	max-width: 720px;
	margin: clamp(28px, 7vw, 90px) auto;
	padding: clamp(36px, 6vw, 68px) clamp(24px, 6vw, 64px);
	border: 1px solid var(--lgw-border);
	border-top: 5px solid var(--lgw-accent);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 20px 55px rgba(10, 14, 26, .08);
}

.lgw-done {
	text-align: center;
	padding: 0;
}

.lgw-done-check {
	width: 76px;
	height: 76px;
	border-radius: 999px;
	background: var(--lgw-accent);
	color: var(--lgw-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	font-weight: 700;
	box-shadow: 0 10px 24px rgba(242, 201, 76, .32);
	margin: 0 auto 26px;
}

.lgw-done .lgw-step-heading {
	margin-bottom: 14px;
}

.lgw-done .lgw-intro {
	font-size: 17px;
	line-height: 1.65;
	margin: 0 auto 30px;
	max-width: 560px;
}

.lgw-done .lgw-intro a {
	color: var(--lgw-ink);
	font-weight: 600;
	text-decoration-color: var(--lgw-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.lgw-done .lgw-btn {
	display: inline-flex;
	min-width: 190px;
	background: var(--lgw-accent);
	color: var(--lgw-ink);
	box-shadow: 0 10px 24px rgba(242, 201, 76, .25);
}

.lgw-done .lgw-btn:hover {
	background: #e7bb35;
	color: var(--lgw-ink);
}

@media (max-width: 600px) {
	.lgw-wizard-done {
		margin: 24px 16px;
		padding: 38px 22px;
		border-radius: 20px;
	}

	.lgw-card { padding: 22px 18px; border-radius: 16px; }
	.lgw-product-context { margin-bottom: 20px; padding-bottom: 16px; }
	.lgw-product-context-icon { width: 38px; height: 38px; flex-basis: 38px; }
	.lgw-product-context-icon .lgw-icon { width: 27px; height: 27px; }
	.lgw-product-context-item strong { font-size: 24px; }
	.lgw-step-heading { font-size: 23px; }
	.lgw-intro { font-size: 15px; line-height: 1.5; }
	.lgw-segmented { display: flex; width: 100%; }
	.lgw-segmented label { flex: 1; min-width: 0; }
	.lgw-segmented span { padding: 11px 8px; font-size: 14px; text-align: center; }

	.lgw-variants {
		grid-template-columns: 1fr;
	}

	.lgw-address-strasse,
	.lgw-address-ort {
		grid-column: span 8;
	}

	.lgw-address-hausnr,
	.lgw-address-plz {
		grid-column: span 4;
	}

	.lgw-address-fields > .lgw-field:not(.lgw-address-field) {
		grid-column: 1 / -1;
	}

	.lgw-nav {
		position: fixed;
		z-index: 1000;
		left: 0;
		right: 0;
		bottom: 0;
		align-items: center;
		gap: 10px;
		margin: 0;
		padding: 12px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
		border-top: 1px solid var(--lgw-border-strong);
		background: rgba(255, 255, 255, .96);
		box-shadow: 0 -8px 28px rgba(10, 14, 26, .12);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		flex-wrap: wrap;
	}

	.lgw-form {
		padding-bottom: calc(130px + env(safe-area-inset-bottom));
	}

	.lgw-step-sim .lgw-form {
		padding-bottom: calc(165px + env(safe-area-inset-bottom));
	}

	.lgw-field,
	.lgw-option,
	.lgw-dropzone,
	.lgw-subblock {
		scroll-margin-bottom: 180px;
	}

	.lgw-btn-next {
		flex: 1;
	}

	.lgw-nav-cart {
		position: relative;
		display: grid;
		place-items: center;
		align-self: center;
		width: 56px;
		height: 56px;
		flex: 0 0 56px;
		padding: 0;
		border: 1px solid var(--lgw-border-strong);
		border-radius: 50%;
		background: #fff;
		color: var(--lgw-ink);
		cursor: pointer;
		line-height: 0;
	}

	.lgw-nav-cart svg {
		display: block;
		width: 25px;
		height: 25px;
		margin: 0;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.9;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.lgw-nav-cart-count {
		position: absolute;
		top: -5px;
		right: -4px;
		display: grid;
		place-items: center;
		min-width: 21px;
		height: 21px;
		padding: 0 5px;
		border: 2px solid #fff;
		border-radius: 999px;
		background: var(--lgw-accent);
		font: 700 11px/1 'Public Sans',"Public Sans Fallback", sans-serif;
	}

	.lgw-btn-back {
		flex: 0 1 32%;
		padding-inline: 20px;
	}

	.lgw-btn-back:disabled {
		display: none;
	}

	.lgw-btn,
	.lgw-btn-back {
		width: 100%;
	}
}
