/*
 * WooCommerce surfaces, restyled to the design system.
 *
 * WooCommerce's own stylesheet is dequeued in inc/woo.php, so this file is the
 * whole of the checkout, cart and order table styling.
 */

/* --------------------------------------------------------------- checkout */

/* Every control in the checkout form is this tall. A native select lines its own
   text out inside whatever height it is given and ignores line-height, so the
   height has to be stated for it too, or the country select sits 2px below the
   inputs beside it. */
.woocommerce-checkout {
	--sl-field-height: 50px;
}

.woocommerce-checkout {
	display: grid;
	grid-template-columns: 1fr;
	/* S3, S4, S5 and R9. The row gap is 0 and every block states its own
	   distance: with a 32 px row gap on top of them, "Zahlung" left 48 px to its
	   box instead of 16, the legal row left 64 px to the button instead of 24,
	   and "Bestellung anzeigen" left 64 px to "Kontakt" instead of 32. The
	   column gap is the 32 px between the fields and the summary. */
	column-gap: var(--space-32);
	row-gap: 0;
}

/* WooCommerce prints its notice containers inside the checkout form, so the two
   blocks are pinned to their own columns instead of relying on grid order. */
.woocommerce-checkout > #customer_details,
.woocommerce-checkout > #order_review {
	grid-column: 1;
	min-width: 0;
}

@media (min-width: 1024px) {
	.woocommerce-checkout {
		grid-template-columns: 7fr 5fr;
		column-gap: var(--space-32);
		align-items: start;
	}
	.woocommerce-checkout > #customer_details {
		grid-column: 1;
	}
	.woocommerce-checkout > #order_review {
		grid-column: 2;
		position: sticky;
		top: var(--space-24);
	}
	.woocommerce-checkout > .woocommerce-notices-wrapper {
		grid-column: 1 / -1;
	}
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout #customer_details,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
	display: block;
	float: none !important;
	width: 100% !important;
	max-width: none;
	margin: 0 !important;
	padding: 0 !important;
}

/* The wrapper is display:inline-block in WooCommerce, which leaves room beside
   the field for the little arrow it expects Select2 to draw. One box is enough,
   so it is a block and the native select fills it. */
.woocommerce-checkout .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

.woocommerce-checkout .woocommerce-input-wrapper > select,
.woocommerce-checkout .woocommerce-input-wrapper > input {
	display: block;
}

.woocommerce-checkout select {
	min-height: var(--sl-field-height);
	width: 100%;
	padding: 12px;
	border: var(--haarlinie) solid var(--text-gedaempft);
	border-radius: var(--radius-control);
	background: var(--papier);
	color: var(--ink);
	appearance: auto;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
	width: auto;
	float: none;
}

/* 14: Kontakt, Lieferadresse, Versand and Zahlung are the same kind of heading:
   32 px above, 16 px below, on all four. "Lieferadresse" had no margin at all
   and sat on the E-Mail field, while "Zahlung" left 40 px to its box and
   "Versand" left 12. */
.woocommerce-checkout .woocommerce-billing-fields h2,
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h2,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #payment h2,
.woocommerce-checkout #payment h3,
#order_review_heading {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 28px;
	line-height: 1.1;
	color: var(--ink);
	margin: var(--space-32) 0 var(--space-16);
	padding: 0;
	border: 0;
}

/* The first heading in the form carries no top margin: the page title owns that
   distance. */
.woocommerce-checkout .woocommerce-billing-fields > h2:first-child,
.woocommerce-checkout .woocommerce-billing-fields > h3:first-child,
.woocommerce-checkout > #customer_details > .col2-set > .woocommerce-billing-fields > :first-child {
	margin-top: 0;
}

.woocommerce-checkout h2,
.woocommerce-checkout h3 {
	margin: var(--space-32) 0 var(--space-16);
}

/* 14: Versand and Zahlung come from Germanized's own wrappers. Named here so all
   four headings state the same two numbers: 32 above, 16 below. */
.woocommerce-checkout #ship_method h3,
.woocommerce-checkout #shipping_method h3,
.woocommerce-checkout .woocommerce-shipping-terms-wrapper h3,
.woocommerce-checkout #payment h3,
.woocommerce-checkout .woocommerce-checkout-payment h3,
.woocommerce-checkout #ship_method + h3,
/* S4: measured in the form dump, "Zahlung" is a bare H2.sl-h3 child of
   form.checkout, so none of the wrappers above matched it. 60 px on a phone and
   170 px on a desktop came from the heading's own margin plus the grid row gap
   plus the block's margin. */
.woocommerce-checkout > .sl-h3 {
	margin: var(--space-32) 0 var(--space-16);
}

/* 14: the heading sits 16 px above its own list, whatever the list brings with
   it. "Zahlung" left 170 px because the block it heads is a flex column with its
   own gap, which was added on top of the heading's margin. */
.woocommerce-checkout #ship_method,
.woocommerce-checkout ul#shipping_method,
.woocommerce-checkout #payment ul.wc_payment_methods,
.woocommerce-checkout .woocommerce-checkout-payment,
.woocommerce-checkout #ship_method + *,
.woocommerce-checkout #payment h3 + *,
.woocommerce-checkout #payment h3 ~ ul {
	margin-top: 0;
}

.woocommerce-checkout #payment,
.woocommerce-checkout .woocommerce-checkout-payment {
	display: block;
}

/* S4: with the heading out of the way, the payment box itself carries no top
   margin, so the 16 px under the heading is the whole gap. */
.woocommerce-checkout > #payment {
	margin-top: 0;
}

.woocommerce-checkout .wc_payment_methods,
.woocommerce-checkout ul#shipping_method {
	margin-top: 0;
}

/* 14: field to field is 16 px everywhere. */
.woocommerce-checkout .form-row {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	margin: 0 0 var(--space-16);
	padding: 0;
}

.woocommerce-checkout .sl-field-block {
	gap: var(--space-16);
}

.woocommerce-checkout .form-row label {
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	color: var(--ink);
}

.woocommerce-checkout input[type='text'],
.woocommerce-checkout input[type='email'],
.woocommerce-checkout input[type='tel'],
.woocommerce-checkout input[type='number'],
.woocommerce-checkout input[type='password'],
.woocommerce-checkout select {
	font: inherit;
	font-size: 16px;
	line-height: 24px;
	/* One field height for every control in the form. A native select ignores
	   line-height and lines its own text out inside whatever height it is given,
	   so the height has to be stated: without this the select came out 2px
	   shorter than the inputs beside it and the row read as a dip. */
	min-height: var(--sl-field-height);
	width: 100%;
	padding: 12px;
	border: var(--haarlinie) solid var(--text-gedaempft);
	border-radius: var(--radius-control);
	background: var(--papier);
	color: var(--ink);
}

.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus {
	outline: var(--fokusring) solid var(--fokus);
	outline-offset: 2px;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
	width: 100%;
	float: none;
}

@media (min-width: 600px) {
	.woocommerce-checkout .form-row-first {
		width: 40%;
		float: left;
		margin-right: var(--space-12);
	}
	.woocommerce-checkout .form-row-last {
		width: calc(60% - 12px);
		float: left;
	}
}

.woocommerce-checkout .form-row-wide {
	width: 100%;
	float: none;
}

/* The design asks for Vorname and Nachname side by side, and for a 110 px PLZ
   next to a wide Ort. Those widths cannot be expressed with WooCommerce's float
   classes, so the rows are built in form-billing.php and laid out here. */
/* The checkout rhythm: a label sits 8 px above its control, fields sit 16 px
   apart, and the two groups (Kontakt, Lieferadresse) are 32 px apart. */
.sl-field-block {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

.sl-field-block + h2,
.woocommerce-billing-fields > h2 + .sl-field-block {
	margin-top: 0;
}

.sl-field-block + .sl-field-block {
	margin-top: var(--space-32);
}

/* 30: PLZ and Ort share one row on a phone too, PLZ at 110 px. */
@media (min-width: 600px) {
	.sl-field-row--two {
		grid-template-columns: 1fr 1fr;
	}

	/* 15: 140 px on a desktop, 110 px on a phone: the postcode is four digits.
	   The prefix is needed because the base .sl-field-row rule is declared after
	   this block and has the same specificity. */
	.woocommerce-checkout .sl-field-row--zip {
		grid-template-columns: 140px minmax(0, 1fr);
	}
}

/* 30: PLZ and Ort share one row on a phone too, PLZ at 110 px and 8 px between
   them, so Ort keeps the width it needs. */
@media (max-width: 599px) {
	.woocommerce-checkout .sl-field-row--zip {
		grid-template-columns: 110px minmax(0, 1fr);
		column-gap: var(--space-8);
	}
}

.sl-field-row {
	display: grid;
	gap: var(--space-12);
	grid-template-columns: 1fr;
}

.woocommerce-checkout .sl-field-row .form-row {
	margin: 0;
}

/* -------------------------------------------------------------- account */

/* 35: WooCommerce's own account form arrived with 13 px Times-ish inputs, no
   radius and inline labels. It is the shop's form now: labels above, 48 px
   controls, one measure, the primary button. */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register,
.woocommerce-account form {
	max-width: 420px;
}

.woocommerce-account .form-row {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	margin: 0 0 var(--space-16);
}

.woocommerce-account label,
.woocommerce-account .woocommerce-form-login label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	color: var(--ink);
	margin: 0;
}

.woocommerce-account input[type='text'],
.woocommerce-account input[type='email'],
.woocommerce-account input[type='password'],
.woocommerce-account input[type='tel'],
.woocommerce-account input[type='number'],
.woocommerce-account select {
	width: 100%;
	min-height: 48px;
	padding: 12px;
	border: var(--haarlinie) solid var(--text-gedaempft);
	border-radius: var(--radius-control);
	background: var(--papier);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	line-height: 24px;
}

/* 23: "Angemeldet bleiben" is the same grid as the checkout checkbox, so its box
   sits on the first line of the text instead of above it. */
.woocommerce-account .woocommerce-form-login__rememberme,
.woocommerce-account label.woocommerce-form-login__rememberme {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	align-items: start;
	column-gap: var(--space-12);
	margin: 0 0 var(--space-24);
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	color: var(--ink);
	cursor: pointer;
}

.woocommerce-account .woocommerce-form-login__rememberme label {
	display: contents;
}

.woocommerce-account .woocommerce-form-login__rememberme span {
	grid-column: 2;
}

.woocommerce-account input[type='checkbox'] {
	width: 24px;
	height: 24px;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	border: var(--fokusring) solid var(--ink);
	border-radius: 4px;
	background-color: var(--papier);
}

.woocommerce-account input[type='checkbox']:checked {
	background-color: var(--ink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5l4.5 4.5 8.5-10' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 100% 100%;
}

.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account button[type='submit'],
.woocommerce-account .woocommerce-button {
	min-height: 48px;
	padding: 12px var(--space-24);
	border: 0;
	border-radius: var(--radius-control);
	background: var(--loop-blau-700);
	color: var(--papier);
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	cursor: pointer;
}

.woocommerce-account .woocommerce-form-login__submit:hover,
.woocommerce-account button[type='submit']:hover,
.woocommerce-account .woocommerce-button:hover {
	background: var(--loop-blau-800);
}

/* B2: WooCommerce's own message inside the field, and the one its block banner
   renders, are hidden. The field's sentence is printed by the script, one per
   field; the second copy with the "Rechnung:" prefix in it came from here. */
.woocommerce-checkout .checkout-inline-error-message,
.woocommerce-checkout .validate-required-error,
.woocommerce-checkout .woocommerce-input-wrapper .woocommerce-error,
.woocommerce-checkout .wc-block-components-notice-banner.is-error,
.woocommerce-checkout .woocommerce-errors-wrapper {
	display: none !important;
}

/* 32: a field's own error, with a small icon, in the error colour. */
.sl-field-error {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: var(--space-4) 0 0;
	color: var(--fehler);
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
}

.sl-field-error svg {
	flex: 0 0 16px;
}

/* 19: in the PLZ/Ort row the PLZ column is 110 px, and its message wrapped into
   three lines. The message spans both columns of the row instead. */
.sl-field-row .sl-field-error {
	grid-column: 1 / -1;
	margin-top: var(--space-4);
}

/* 19: WooCommerce's own error list is hidden. The template prints one line above
   the form instead, and each field carries its own sentence under it. */
.woocommerce-checkout .wc-block-components-notice-banner.is-error,
.woocommerce-checkout .woocommerce-errors-wrapper {
	display: none !important;
}

/* S5: the summary and the AGB sentence are two lines of one red box. The
   surface sits on the container, so the second line is inside the box instead of
   below it, and 24 px separates the box from "Bestellung anzeigen". */
.sl-checkout-errors {
	margin: 0 0 var(--space-24);
	padding: var(--space-12) var(--space-16);
	background: var(--fehler-flaeche);
	color: var(--fehler);
}

.sl-checkout-errors-line {
	margin: 0;
	padding: 0;
	background: none;
	color: inherit;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
}

/* 19: the box at the top is one line, the summary, with a link to the first field.
   It is styled on the WooCommerce 11 block notice banner as well as on the older
   wrapper class, because the banner is what this install prints. */
.woocommerce-checkout .woocommerce-errors-wrapper[data-sl-error-box='summary'],
.woocommerce-checkout .wc-block-components-notice-banner.is-error[data-sl-error-box='summary'] {
	margin: 0 0 var(--space-24);
	border: 0;
}

.woocommerce-checkout .woocommerce-errors-wrapper[data-sl-error-box='summary'] li,
.woocommerce-checkout .wc-block-components-notice-banner.is-error[data-sl-error-box='summary'] li {
	list-style: none;
	border: 0;
	margin: 0;
	padding: var(--space-12) var(--space-16);
	background: var(--fehler-flaeche);
	color: var(--fehler);
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
}

.woocommerce-checkout .wc-block-components-notice-banner.is-error[data-sl-error-box='summary'] .wc-block-components-notice-banner__content {
	padding: 0;
}

/* The AGB line under the summary, when the legal checkbox is the thing missing. */
.sl-checkout-agb-line {
	margin: var(--space-8) 0 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--fehler);
}

.woocommerce-checkout .form-row .required {
	text-decoration: none;
	color: var(--fehler);
}

.woocommerce-checkout .validate-required-error,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-invalid input,
.woocommerce-checkout .woocommerce-invalid select {
	border-color: var(--fehler);
}

.woocommerce-checkout .validate-required-error {
	font-size: 14px;
	line-height: 20px;
	color: var(--fehler);
	display: flex;
	align-items: center;
	gap: var(--space-4);
}



/* Option cards for the shipping and payment methods. */

.woocommerce-checkout .wc_payment_methods,
.woocommerce-checkout ul#shipping_method {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	border: 0;
	margin: 0 0 var(--space-24);
	padding: 0;
}

.woocommerce-checkout .wc_payment_method,
.woocommerce-checkout #shipping_method li {
	padding: 14px 16px;
	background: var(--papier);
	border: var(--haarlinie) solid var(--linie);
	border-radius: var(--radius-control);
	margin: 0;
	list-style: none;
}

.woocommerce-checkout .wc_payment_method input,
.woocommerce-checkout #shipping_method input {
	width: 20px;
	height: 20px;
	margin: 0 8px 0 0;
	vertical-align: middle;
	accent-color: var(--ink);
}

.woocommerce-checkout #shipping_method label {
	display: inline-block;
	vertical-align: middle;
	margin-right: auto;
}

.woocommerce-checkout #shipping_method li {
	display: flex;
	align-items: center;
	gap: var(--space-12);
}

.woocommerce-checkout .wc_payment_method label {
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	margin: 0;
	cursor: pointer;
	display: inline-block;
	vertical-align: middle;
	width: auto;
}

/* 18: the unselected card is a 1 px line. A 3 px black border on every option
   read as an error state on a form where nothing is wrong. The selected card is
   2 px of loop-blau, which is the one place on the page with a real state. */
.woocommerce-checkout .wc_payment_method:has(input:checked),
.woocommerce-checkout #shipping_method li:has(input:checked) {
	border: 2px solid var(--loop-blau-700);
	padding: 13px 15px;
}

.woocommerce-checkout .payment_box {
	background: var(--papier);
	color: var(--ink);
	display: block;
	/* 18: with a single gateway the radio is not shown, so the description was
	   indented 28 px under nothing. It lines up with the title instead. */
	padding: var(--space-8) 0 0;
	margin-left: 0;
	font-size: 14px;
	line-height: 20px;
	flex-basis: 100%;
}

.woocommerce-checkout .payment_box::before {
	display: none;
}

.woocommerce-checkout .payment_box p {
	margin: var(--space-8) 0;
}

/* The shipping row used to be forced to display:block, which took it out of the
   table's own layout: the row then sized itself to its content and the summary's
   columns came out ragged. A table row stays a table row. */
.woocommerce-checkout .woocommerce-order-review-wrap {
	display: block;
}

/* On a phone the summary folds away behind "Bestellung anzeigen", and that bar
   already says what it opens. The heading above it was an orphan between the
   page title and the bar, so it is hidden there and shown from 1024 px up. */
@media (max-width: 1023px) {
	/* !important because the heading arrives with an inline display:block from the
	   page builder, and no stylesheet rule can outrank an inline style without
	   it. */
	.woocommerce-checkout .sl-checkout-summary-heading {
		display: none !important;
	}
}

/* 29: the page title sits 24 px above the foldable summary bar, and the bar sits
   32 px above the first field group. */
.woocommerce-checkout .sl-checkout-title,
.sl-checkout-title {
	margin-bottom: var(--space-24);
}

@media (min-width: 1024px) {
	.woocommerce-checkout > #customer_details {
		margin-top: var(--space-32);
	}
}

/* 16: the gap between "Bestellung anzeigen" and "Kontakt" was 120 px on a
   phone. 32 px is the section rhythm. */
@media (max-width: 1023px) {
	/* 16: the collapsed summary was still taking 88 px of the row, so the gap
	   between the bar and "Kontakt" was 120 px instead of 32. */
	/* R9: the collapsed summary takes no room on a phone. The form's row gap is
	   0, so the 32 px from "Bestellung anzeigen" to "Kontakt" is the toggle's
	   own bottom margin. */
	.woocommerce-checkout > .sl-summary-toggle {
		margin: 0 0 var(--space-32);
	}

	/* S5: 24 px from the error box to "Bestellung anzeigen". */
	.woocommerce-checkout .sl-checkout-errors {
		margin-bottom: var(--space-24);
	}

	.woocommerce-checkout > .sl-order-review[data-collapsed='true'] {
		display: none;
	}

	.woocommerce-checkout .sl-checkout-summary > .sl-checkout-summary-heading {
		display: none;
	}

	.woocommerce-checkout .woocommerce-billing-fields > h2,
	.woocommerce-checkout .woocommerce-billing-fields > h3 {
		margin-top: var(--space-32);
	}
}

/* On a phone the wrapper holds the heading and the summary table, and both are
   hidden there: the toggle takes the place of the heading and the table only
   appears when the toggle is opened, in the flow of the form. The wrapper itself
   is taken out of the grid so it does not add an empty row. */
@media (max-width: 1023px) {
	.woocommerce-checkout > .sl-checkout-summary {
		display: contents;
	}
}

/* The order summary. */

#order_review {
	background: var(--papier);
	padding: var(--space-24);
	border-radius: 0;
}

/* On a wide screen the fields, the shipping choice, the payment choice, the
   legal checkbox and the order button fill the left column, and the summary sits
   in a sticky right column. The markup follows that order already, so the grid
   only has to place it. */
@media (min-width: 1024px) {
	/* S2. Every left column child is pinned to column 1 by name, and the list
	   includes the headings that Germanized prints straight into the form as bare
	   children ("Zahlung" and "Versand"). Left to auto-placement they fell into
	   column 2 as soon as the summary was given a row of its own, which put the
	   payment heading opposite its own payment box.

	   Nothing on the left names a row, so the fields take the first free cell in
	   row 1, which is column 1. The summary heading is pinned to that same row
	   with no top margin, so "Deine Bestellung" and "Kontakt" share a top edge. */
	.woocommerce-checkout > #customer_details,
	.woocommerce-checkout > .sl-checkout-shipping,
	.woocommerce-checkout > #payment,
	.woocommerce-checkout > .wc-gzd-checkbox-placeholder,
	.woocommerce-checkout > .wc-gzd-order-submit,
	.woocommerce-checkout > h2,
	.woocommerce-checkout > h3,
	.woocommerce-checkout > .sl-h2,
	.woocommerce-checkout > .sl-h3 {
		grid-column: 1;
	}

	/* T1. One item holds the heading and the summary table: column 2, from row 1
	   through the last row, sticking 24 px from the top while the fields scroll
	   past. As two separate items the heading sat at the top of a row the 730 px
	   tall field block had made, and the table dropped a whole screen below it,
	   level with the Versand block.

	   The gap between the heading and the table is the 16 px row gap of the
	   wrapper, which is the only distance between them. */
	.woocommerce-checkout > .sl-checkout-summary {
		grid-column: 2;
		grid-row: 1 / -1;
		align-self: start;
		position: sticky;
		top: var(--space-24);
		display: flex;
		flex-direction: column;
		row-gap: var(--space-16);
	}

	/* The heading carries a 32 px top margin from the rule that styles all four
	   headings, which would push it off the row it shares with "Kontakt". */
	.woocommerce-checkout > .sl-checkout-summary > #order_review_heading,
	.woocommerce-checkout > .sl-checkout-summary > .sl-checkout-summary-heading {
		margin: 0;
	}

	.woocommerce-checkout > .sl-checkout-summary > .sl-order-review {
		margin-top: 0;
	}

	/* The fields open the row the summary opens, so both headings start at the
	   same y. Grid packs sparsely and the summary has taken row 1 column 2, so
	   this is stated rather than left to auto placement. */
	.woocommerce-checkout > #customer_details {
		grid-column: 1;
		grid-row: 1;
	}

	/* With an error box present the box takes the first row across both columns
	   and the summary and the fields drop one row together. */
	.woocommerce-checkout:has(> .sl-checkout-errors) > .sl-checkout-errors {
		grid-column: 1 / -1;
		grid-row: 1;
		margin-bottom: var(--space-24);
	}

	.woocommerce-checkout:has(> .sl-checkout-errors) > .sl-checkout-summary,
	.woocommerce-checkout:has(> .sl-checkout-errors) > #customer_details {
		grid-row: 2;
	}
}

/* The Germanized submit block is a plain wrapper: it only holds the button and
   what the shop prints under it. */
.woocommerce-checkout .wc-gzd-order-submit {
	margin-top: var(--space-24);
}

.woocommerce-checkout .wc-gzd-order-submit .place-order {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-16);
	margin-top: 0;
}

.woocommerce-checkout .wc-gzd-order-submit .place-order .button,
.woocommerce-checkout .wc-gzd-order-submit .place-order #place_order {
	width: 100%;
	min-height: 56px;
	font-family: var(--font-text);
	font-weight: 600;
	font-size: 18px;
	line-height: 24px;
	padding: 12px 20px;
	border: var(--haarlinie) solid transparent;
	border-radius: var(--radius-control);
	background: var(--loop-blau-700);
	color: var(--papier);
	text-decoration: none;
	cursor: pointer;
}

.woocommerce-checkout .wc-gzd-order-submit .place-order .button:hover,
.woocommerce-checkout .wc-gzd-order-submit .place-order #place_order:hover {
	background: var(--loop-blau-800);
	color: var(--papier);
}

/* The same-address checkbox: 22 px with an ink border, the size every other
   control on the page uses. It was disabled, which greyed it out and read as
   something the customer was not allowed to touch. */
.woocommerce-checkout .sl-same-address {
	margin-top: var(--space-4);
}

.woocommerce-checkout .sl-same-address label.checkbox {
	display: flex;
	align-items: center;
	gap: var(--space-12);
	margin: 0;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	cursor: pointer;
}

.woocommerce-checkout .sl-same-address input[type='checkbox'] {
	/* appearance:none is what makes the border show. Left on auto, the native
	   control paints its own box over the border and the result is a 22 px box
	   with no outline at all. */
	appearance: none;
	-webkit-appearance: none;
	width: 22px;
	height: 22px;
	min-width: 22px;
	flex: 0 0 22px;
	margin: 0;
	padding: 0;
	border: var(--fokusring) solid var(--ink);
	border-radius: 4px;
	background-color: var(--papier);
	cursor: pointer;
}

.woocommerce-checkout .sl-same-address input[type='checkbox']:checked {
	background-color: var(--ink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5 11.5l4 4 8-9' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 100% 100%;
}

.woocommerce-checkout .sl-same-address input[type='checkbox']:focus-visible {
	outline: var(--fokusring) solid var(--loop-blau-700);
	outline-offset: 2px;
}

/* The legal checkbox sits directly above the button. The other placeholders are
   empty divs Germanized prints for checkboxes this shop does not use; they would
   otherwise push the button away from the text that explains it. */
/* 17: the legal checkbox is a grid: a 24 px box, 12 px of gap, then the text at
   14/20 regular weight starting on the box's first line. Germanized prints the
   required marker as its own element, which put a red "*" on a line of its own
   with 80 px of dead space under it; the marker is taken out of the flow and
   sits inline after the text instead. */
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox,
.woocommerce-checkout .wc-gzd-checkbox-placeholder .legal,
.woocommerce-checkout label.checkbox,
.woocommerce-checkout .woocommerce-form__label-for-checkbox {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	align-items: start;
	column-gap: var(--space-12);
	margin: 0;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: var(--ink);
	cursor: pointer;
}

/* 17: the label carries the text and the box is the input beside it. Germanized
   hides the input and styles the label, so with display:contents the grid had a
   single visible child and the text wrapped under an empty first column. */
.woocommerce-checkout .woocommerce-privacy-policy-text label,
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox label,
.woocommerce-checkout .wc-gzd-checkbox-placeholder .legal label {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	align-items: start;
	column-gap: var(--space-12);
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: var(--ink);
	cursor: pointer;
}

.woocommerce-checkout .wc-gzd-checkbox-placeholder .legal input[type='checkbox'],
.woocommerce-checkout .woocommerce-privacy-policy-text input[type='checkbox'],
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox input[type='checkbox'] {
	display: block !important;
	grid-column: 1;
	grid-row: 1;
}

.woocommerce-checkout .wc-gzd-checkbox-placeholder .legal label > *,
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox label > *,
.woocommerce-checkout .woocommerce-privacy-policy-text label > * {
	grid-column: 2;
	grid-row: 1;
}

/* 17: Germanized prints the required marker as its own element, which put a red
   "*" on a line of its own under the text with 60 to 80 px of dead space below
   it. The marker is taken out of the box entirely: the label already says what
   has to be confirmed. */
.woocommerce-checkout .wc-gzd-checkbox-placeholder .legal .woocommerce-required,
.woocommerce-checkout .wc-gzd-checkbox-placeholder .legal abbr,
.woocommerce-checkout .woocommerce-privacy-policy-text .required,
.woocommerce-checkout .woocommerce-privacy-policy-text abbr,
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox .required,
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox abbr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* 24 px between the checkbox and the order button. */
.woocommerce-checkout .wc-gzd-order-submit {
	margin-top: var(--space-24);
}

.woocommerce-checkout label.checkbox input[type='checkbox'],
.woocommerce-checkout .woocommerce-form__input-checkbox {
	width: 24px;
	height: 24px;
	min-width: 24px;
	flex: 0 0 24px;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	border: var(--fokusring) solid var(--ink);
	border-radius: 4px;
	background-color: var(--papier);
	cursor: pointer;
}

.woocommerce-checkout label.checkbox input[type='checkbox']:checked {
	background-color: var(--ink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5l4.5 4.5 8.5-10' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 100% 100%;
}

.woocommerce-checkout label.checkbox input[type='checkbox']:focus-visible {
	outline: var(--fokusring) solid var(--loop-blau-700);
	outline-offset: 2px;
}

.woocommerce-checkout .wc-gzd-checkbox-placeholder:empty {
	display: none;
}

.woocommerce-checkout .wc-gzd-checkbox-placeholder .legal {
	margin: 0 0 var(--space-16);
}

.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td,
body .woocommerce table.shop_table {
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.woocommerce-checkout-review-order-table th,
.woocommerce table.shop_table th {
	font-weight: 600;
	font-size: 14px;
	text-align: left;
	padding: 10px 0;
	border-bottom: 2px solid var(--ink);
	color: var(--ink);
	text-transform: none;
}

.woocommerce-checkout-review-order-table td,
.woocommerce table.shop_table td {
	padding: var(--space-12) 0;
	border-bottom: var(--haarlinie) solid var(--linie);
	color: var(--ink);
	font-size: 16px;
	line-height: 26px;
	vertical-align: top;
}

/* One 1 px rule the full width under every totals row. The heading rule above
   also matches ".woocommerce table.shop_table th", which is two elements more
   specific, so the selector here has to be as long or the totals rows kept the
   2 px ink rule on the label cell and the rule broke in two at the column edge. */
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot th,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
	border-bottom: var(--haarlinie) solid var(--linie);
	font-weight: 400;
}

.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
	border-top: var(--haarlinie) solid var(--linie);
	border-bottom: 0;
	font-weight: 600;
	font-size: 20px;
	line-height: 28px;
	padding-top: var(--space-8);
}

.woocommerce-checkout-review-order-table .product-name {
	font-weight: 600;
}

.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table tfoot td {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.woocommerce-checkout-review-order-table .cart-subtotal th,
.woocommerce-checkout-review-order-table .cart-subtotal td {
	font-weight: 400;
}

.woocommerce-checkout .small,
.woocommerce-checkout .small-tax-note {
	font-size: 14px;
	line-height: 20px;
	color: var(--text-gedaempft);
}

.woocommerce-checkout .woocommerce-shipping-totals ul#shipping_method + .woocommerce-shipping-destination {
	display: none;
}

/* The order button and everything above it. */

.woocommerce-checkout .place-order {
	padding: 0;
	margin: var(--space-24) 0 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
}

.woocommerce-checkout #payment {
	background: transparent;
	border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
	background: transparent;
	padding: 0;
}

.woocommerce-checkout #payment div.form-row.place-order {
	padding: 0;
}

body .woocommerce-checkout #payment #place_order {
	font-family: var(--font-text);
	font-weight: 600;
	font-size: 18px;
	line-height: 24px;
	width: 100%;
	min-height: 56px;
	padding: 12px 20px;
	border-radius: var(--radius-control);
	background: var(--loop-blau-700);
	border-color: var(--loop-blau-700);
	color: var(--papier);
	cursor: pointer;
}

body .woocommerce-checkout #payment #place_order:hover,
body .woocommerce-checkout #payment #place_order:focus {
	background: var(--loop-blau-800);
	color: var(--papier);
}

.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
	font-size: 14px;
	line-height: 20px;
	color: var(--ink);
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.woocommerce-checkout .woocommerce-privacy-policy-text p,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p {
	margin: 0;
}

/* 31: the legal checkbox is 24 px, and these two selectors are the ones that
   actually match Germanized's markup, so the size is stated here as well. */
.woocommerce-checkout .woocommerce-privacy-policy-text input[type='checkbox'],
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox input[type='checkbox'],
.woocommerce-checkout .wc-gzd-checkbox-placeholder input[type='checkbox'],
.woocommerce-checkout #legal {
	width: 24px;
	height: 24px;
	min-width: 24px;
	margin: 0;
	flex: 0 0 24px;
	appearance: none;
	-webkit-appearance: none;
	border: var(--fokusring) solid var(--ink);
	border-radius: 4px;
	background-color: var(--papier);
	accent-color: var(--ink);
}

.woocommerce-checkout .woocommerce-privacy-policy-text input[type='checkbox']:checked,
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox input[type='checkbox']:checked,
.woocommerce-checkout .wc-gzd-checkbox-placeholder input[type='checkbox']:checked,
.woocommerce-checkout #legal:checked {
	background-color: var(--ink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5l4.5 4.5 8.5-10' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 100% 100%;
}

/* The text is regular weight at 14/20, on the first line. */
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	align-items: start;
	column-gap: var(--space-12);
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	color: var(--ink);
	margin: 0;
}

.woocommerce-checkout .woocommerce-privacy-policy-text label,
.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox label,
.woocommerce-checkout .wc-gzd-checkbox-placeholder label {
	display: contents;
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	color: var(--ink);
	cursor: pointer;
}

.woocommerce-checkout .form-row.validate-error .woocommerce-error,
.woocommerce-checkout .woocommerce-error {
	background: var(--fehler-flaeche);
	color: var(--fehler);
	border: 0;
	border-radius: 0;
	padding: var(--space-12) var(--space-16);
	font-size: 14px;
	line-height: 20px;
	margin: 0 0 var(--space-12);
	list-style: none;
}

body .woocommerce form .form-row .input-checkbox,
body .woocommerce form .form-row .input-checkbox {
	width: 22px;
	height: 22px;
	margin: 0 10px 0 0;
	accent-color: var(--ink);
}

.woocommerce form .form-row .input-radio {
	width: 20px;
	height: 20px;
	margin: 0 10px 0 0;
	accent-color: var(--ink);
}

/* The summary rows: photo, name, size on one line and the amount on the right. */

/* Fixed layout with an explicit colgroup: every row then starts and ends at the
   same x, and one 1 px rule runs the full width under it. With the default auto
   layout each row sized its own columns, so the totals rows lined up with
   nothing and the rules broke into segments. */
.woocommerce-checkout-review-order-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

.woocommerce-checkout-review-order-table .sl-summary-col-article {
	width: 70%;
}

.woocommerce-checkout-review-order-table .sl-summary-col-amount {
	width: 30%;
}

.woocommerce-checkout-review-order-table .product-name {
	white-space: normal;
}

/* The amount sits on the right; the quantity belongs to the name, not on a line
   of its own. */
.sl-summary-amount {
	text-align: right;
	white-space: nowrap;
}

.sl-summary-item-qty {
	margin-left: var(--space-8);
	font-weight: 400;
	color: var(--text-gedaempft);
	white-space: nowrap;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
	vertical-align: top;
}

.woocommerce-checkout-review-order-table .shipping th,
.woocommerce-checkout-review-order-table .order-total th {
	padding-right: var(--space-12);
}

/* The totals rows use the same two columns as the rows above them, so every row
   starts and ends at the same x. */
.woocommerce-checkout-review-order-table tfoot th {
	width: 70%;
	text-align: left;
}

.woocommerce-checkout-review-order-table tfoot td {
	text-align: right;
}

.woocommerce-checkout-review-order-table .sl-summary-item {
	display: flex;
	align-items: flex-start;
	gap: var(--space-12);
}

.sl-summary-thumb {
	width: 64px;
	height: 64px;
	flex: 0 0 64px;
	object-fit: contain;
	background: var(--kreide);
}

.sl-summary-item-body {
	flex: 1 1 auto;
	min-width: 0;
}

.sl-summary-item-name,
.sl-summary-item-size {
	margin: 0;
	font-weight: 600;
}

.sl-summary-item-size,
.sl-summary-item-logo {
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: var(--text-gedaempft);
}

.sl-summary-item-logo {
	/* a file name is meta, not a heading */
	overflow-wrap: anywhere;
}

/* The neutral tile: an SVG or a PDF logo cannot be drawn, and a product photo
   that does not exist must not become an <img> with an empty src. */
.sl-summary-thumb--file {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-gedaempft);
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
	font-weight: 700;
	font-size: 20px;
	border-bottom: 0;
}

.woocommerce-checkout-review-order-table .includes_tax {
	display: block;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	white-space: nowrap;
}

.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .shipping td {
	white-space: nowrap;
}

/* The shipping row must wrap at every width: the nowrap above pushes the
 * "Postversand gratis 0,00 €" cell past the table edge at 1366/1900 and
 * creates a 53 px horizontal overflow at 390. Same specificity, later rule. */
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals td {
	text-align: right;
	white-space: normal;
	overflow-wrap: break-word;
}

/* The shipping cards in the left column. */

.sl-checkout-block {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	margin-top: var(--space-32);
}

.woocommerce-checkout .sl-shipping-options {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-checkout .sl-shipping-option {
	display: flex;
	align-items: center;
	gap: var(--space-12);
	padding: 14px 16px;
	background: var(--papier);
	border: var(--haarlinie) solid var(--text-gedaempft);
	border-radius: var(--radius-control);
	margin: 0;
	list-style: none;
}

.woocommerce-checkout .sl-shipping-option:has(input:checked) {
	border: var(--fokusring) solid var(--ink);
}

.woocommerce-checkout .sl-shipping-option input {
	width: 20px;
	height: 20px;
	margin: 0;
	flex: 0 0 20px;
	accent-color: var(--ink);
}

/* The chosen rate's amount comes from the cart, which knows the tax. */
.woocommerce-checkout .sl-shipping-option-price {
	white-space: nowrap;
}

.woocommerce-checkout .sl-shipping-option label {
	display: flex;
	flex: 1 1 auto;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-12);
	margin: 0;
	cursor: pointer;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
}

/* The narrow checkout summary toggle. */

.sl-summary-toggle {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-12);
	padding: 14px 0;
	background: var(--papier);
	border: 0;
	border-bottom: var(--haarlinie) solid var(--linie);
	font: inherit;
	color: var(--ink);
	cursor: pointer;
	min-height: 48px;
}

.sl-summary-toggle span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

@media (min-width: 1024px) {
	.sl-summary-toggle {
		display: none;
	}
}

.sl-checkout-section .woocommerce-checkout #order_review {
	background: transparent;
	padding: var(--space-24) 0 0;
}

@media (max-width: 1023px) {
	/* The summary table folds away behind "Bestellung anzeigen"; the payment
	   methods and the order button stay visible, because a customer cannot pay
	   a total it cannot see. */
	.woocommerce-checkout #order_review[data-collapsed='true'] .woocommerce-checkout-review-order-table {
		display: none;
	}
	.woocommerce-checkout #order_review[data-collapsed='true'] #order_review_heading,
	.woocommerce-checkout #order_review[data-collapsed='true'] .woocommerce-terms-and-conditions-wrapper,
	.woocommerce-checkout #order_review[data-collapsed='true'] .woocommerce-privacy-policy-text {
		display: none;
	}
}

/* The cart page, only reachable with an empty cart. */

.sl-cart-table-wrap table.shop_table th,
.sl-cart-table-wrap table.shop_table td {
	padding: var(--space-12) 0;
}

body .woocommerce .quantity input {
	font: inherit;
	min-height: 48px;
	width: 64px;
	border: var(--haarlinie) solid var(--text-gedaempft);
	border-radius: var(--radius-control);
	text-align: center;
}

/* The thank you page. */

.woocommerce ul.order_details {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-24);
	padding: var(--space-16);
	background: var(--papier);
	margin: 0 0 var(--space-24);
	list-style: none;
	border: var(--haarlinie) solid var(--linie);
}

.woocommerce ul.order_details li {
	font-size: 14px;
	line-height: 20px;
	border: 0;
	margin: 0;
	padding: 0;
	color: var(--ink);
	text-transform: none;
}

.woocommerce ul.order_details li strong {
	display: block;
	font-size: 16px;
}

.woocommerce-thankyou-order-received {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
	margin: 0 0 var(--space-8);
	color: var(--ink);
}

.woocommerce .woocommerce-privacy-policy-text a,
.woocommerce a {
	color: var(--loop-blau-700);
}

.woocommerce-thankyou .woocommerce-button,
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button,
body .woocommerce #respond input#submit {
	font-family: var(--font-text);
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	min-height: 48px;
	padding: 12px 20px;
	border-radius: var(--radius-control);
	background: var(--loop-blau-700);
	border: 2px solid var(--loop-blau-700);
	color: var(--papier);
	text-decoration: none;
}

.woocommerce-thankyou .woocommerce-button:hover,
body .woocommerce a.button:hover,
body .woocommerce button.button:hover {
	background: var(--loop-blau-800);
	color: var(--papier);
}

body .woocommerce .button.alt {
	background: var(--loop-blau-700);
	color: var(--papier);
}
/* Round four, last pass. These three carry !important because each one is
   fighting a WooCommerce or Germanized rule that wins on order or specificity,
   and each was measured after the fight. */

body.sl .woocommerce-checkout ul.woocommerce-shipping-methods,
body.sl .woocommerce-checkout .woocommerce-shipping-methods,
body.sl .woocommerce-checkout #ship_method,
body.sl .woocommerce-checkout ul#shipping_method,
body.sl .woocommerce-checkout .wc_payment_methods,
body.sl .woocommerce-checkout #payment ul.wc_payment_methods,
body.sl .woocommerce-checkout .woocommerce-checkout-payment {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.sl .woocommerce-checkout #payment,
body.sl .woocommerce-checkout .woocommerce-checkout-payment {
	display: block !important;
}

body.sl .woocommerce-checkout .woocommerce-checkout-payment > *:first-child,
body.sl .woocommerce-checkout #payment ul:first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* R16: the collapsed summary takes no room of its own on a phone, so the gap
   between "Bestellung anzeigen" and "Kontakt" is the 32 px of the toggle. The
   selectors reach into the summary wrapper T1 introduced, and they no longer
   hide the table once the toggle has opened it. */
@media (max-width: 1023px) {
	body.sl .woocommerce-checkout .sl-checkout-summary > .sl-order-review,
	body.sl .woocommerce-checkout .sl-checkout-summary > .sl-order-review[data-collapsed='true'] {
		display: none !important;
	}

	body.sl .woocommerce-checkout .sl-checkout-summary > .sl-order-review[data-collapsed='false'] {
		display: block !important;
	}
}

@media (min-width: 1024px) {
	body.sl .woocommerce-checkout .sl-checkout-summary > .sl-order-review {
		display: block !important;
	}
}

/* R17: the box is the input, whatever Germanized did to it. */
body.sl .woocommerce-checkout .wc-gzd-checkbox-placeholder .legal input,
body.sl .woocommerce-checkout .wc-gzd-checkbox-placeholder input[type='checkbox'],
body.sl .woocommerce-checkout .woocommerce-privacy-policy-text input[type='checkbox'],
body.sl .woocommerce-checkout .woocommerce-terms-and-conditions-checkbox input[type='checkbox'] {
	display: inline-block !important;
	position: static !important;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px !important;
	margin: 0 !important;
	opacity: 1 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	border: var(--fokusring) solid var(--ink) !important;
	border-radius: 4px !important;
	background-color: var(--papier) !important;
	grid-column: 1;
	grid-row: 1;
}

body.sl .woocommerce-checkout .wc-gzd-checkbox-placeholder .legal,
body.sl .woocommerce-checkout .woocommerce-privacy-policy-text,
body.sl .woocommerce-checkout .woocommerce-terms-and-conditions-checkbox {
	display: grid !important;
	grid-template-columns: 24px minmax(0, 1fr) !important;
	align-items: start !important;
	column-gap: var(--space-12) !important;
	row-gap: 0 !important;
	/* S3: no margin of its own, so the 24 px to the button is the form's row gap
	   and nothing else. */
	margin: 0 !important;
}

/* S3: the red "*" Germanized prints as its own span. It landed in the grid's
   first column on top of the box, and before that on its own line under the text.
   The label already says what has to be confirmed. */
body.sl .woocommerce-checkout .wc-gzd-checkbox-placeholder .legal .required,
body.sl .woocommerce-checkout .wc-gzd-checkbox-placeholder .legal span.required,
body.sl .woocommerce-checkout .woocommerce-privacy-policy-text .required,
body.sl .woocommerce-checkout .woocommerce-terms-and-conditions-checkbox .required {
	display: none !important;
}

body.sl .woocommerce-checkout > .wc-gzd-checkbox-placeholder,
body.sl .woocommerce-checkout > .wc-gzd-checkbox-placeholder .legal {
	margin: 0 !important;
}

body.sl .woocommerce-checkout .wc-gzd-order-submit {
	margin-top: var(--space-24) !important;
}

body.sl .woocommerce-checkout .wc-gzd-checkbox-placeholder .legal label,
body.sl .woocommerce-checkout .woocommerce-privacy-policy-text label,
body.sl .woocommerce-checkout .woocommerce-terms-and-conditions-checkbox label {
	display: contents !important;
}

/* --------------------------------------------------------- the logo step */

/* The drop zone, the button behind a real file input, and the states the step
   can be in. Every measurement is a token: the design has no length that is not
   on one of the three scales.

   The file input is not hidden from the browser but hidden from the eye: it sits
   over the label, keeps its own focus ring, and stays in the tab order, so the
   step works from the keyboard with no key handler anywhere. */
.sl-logo {
	position: relative;
}

.sl-logo-drop {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	padding: var(--space-16);
	border: var(--haarlinie) dashed var(--linie);
	border-radius: var(--radius-control);
	background: var(--papier);
}

.sl-logo-drop[hidden] {
	display: none;
}

.sl-logo-drop.is-over {
	border-color: var(--loop-blau-700);
	background: var(--kreide);
}

.sl-logo-button {
	position: relative;
	min-height: 56px;
	width: 100%;
}

/* The input is sr-only, not display:none: it has to keep its place in the tab
   order and keep answering .click() while the drop box around the label is gone
   (which is the state after an upload). A zero size overlay inside the box could
   do neither. */
.sl-logo-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* The ring is drawn on the label, because that is what the eye sees. Without it
   the step looks like it lost the focus halfway through the keyboard path. */
.sl-logo:focus-within .sl-logo-button {
	outline: var(--fokusring) solid var(--fokus);
	outline-offset: 2px;
}

.sl-logo-input:disabled {
	cursor: progress;
}

/* The button is a label, and a label is not a button: it needs the same
   behaviour or it does not look like one when it is pressed. */
.sl-logo-button:active {
	background: var(--kreide);
}

.sl-logo-button.is-busy {
	opacity: 0.6;
	cursor: progress;
}

.sl-logo-hint {
	margin: 0;
}

/* "Wird hochgeladen ..." is the one status line that is printed, and it sits 8 px
   under the button, which is the .sl-logo-drop gap. */
.sl-logo-busy {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--text-gedaempft);
}

.sl-logo-busy[hidden] {
	display: none;
}

/* The uploaded tile: papier on kreide, 64 px thumbnail, the name on one line. */
.sl-logo-tile {
	display: flex;
	align-items: center;
	gap: var(--space-12);
	padding: var(--space-12);
	background: var(--papier);
	border: var(--haarlinie) solid var(--linie);
	border-radius: var(--radius-control);
}

.sl-logo-tile[hidden],
.sl-logo-done[hidden],
.sl-logo-replace[hidden] {
	display: none;
}

.sl-logo-thumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	background: var(--kreide);
	border-radius: var(--radius-control);
	overflow: hidden;
	color: var(--text-gedaempft);
}

.sl-logo-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sl-logo-tile-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

/* The name is cut rather than wrapped: a long club name would push the size and
   the state onto a third line and the tile would be twice as tall as the design. */
.sl-logo-name {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
}

.sl-logo-size {
	display: block;
}

.sl-logo-done {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	font-size: 14px;
	line-height: 20px;
	color: var(--erfolg);
	margin-top: 2px;
}

.sl-logo-replace {
	flex: 0 0 auto;
	align-self: center;
}

/* The aria-live region. Read, never printed: it carried the same sentence as the
   red box and as the tile line, so every state was on the page twice. */
.sl-logo-status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* body.sl p has more weight than a single class, so the margin has to be said
   with body.sl in front of it or the message grows the 16 px every paragraph in
   this shop grows. */
body.sl .sl-logo-error {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	/* The step's own gap puts the box 8 px under the upload box, and the buy
	   column leaves 24 px between two fields: the message sits inside the step, so
	   it adds no margin of its own and "Menge" stays 24 px below it. */
	margin: 0;
	padding: var(--space-12) var(--space-16);
	background: var(--fehler-flaeche);
	color: var(--fehler);
	font-size: 14px;
	line-height: 20px;
	border-radius: 0;
}

body.sl .sl-logo-error[hidden],
.sl-logo-warn[hidden] {
	display: none;
}

/* 8 px under the tile, which is the step's gap; the warning belongs to the file.
   body.sl p would give it 16 px, so this is said with the weight to win. */
body.sl .sl-logo-warn {
	margin: 0;
	padding: var(--space-12) var(--space-16);
	background: var(--warnung-flaeche);
	color: var(--warnung);
	font-size: 14px;
	line-height: 20px;
	border-radius: 0;
}

/* The drawer's and the summary's logo line: same weight as the size line above
   it, never a heading of its own. */
.sl-drawer-line-logo,
.sl-summary-item-logo,
.sl-thankyou-logo {
	margin: 0;
}

/* The thank you table at 390: the name on its own line, its meta lines under it,
   the shipping label in the left cell with the method muted under it, and only
   the amount in the right cell, never wrapping. Before this the shipping was one
   string ("Paket bis 1 kg 3,50 €") in the right cell and the page was 397 px wide
   inside a 390 px screen. */
.sl-thankyou-name {
	margin: 0;
	display: block;
}

.sl-thankyou-meta {
	margin: 0;
	display: block;
}

.sl-thankyou-total {
	white-space: nowrap;
}

.sl-thankyou-total-sub {
	display: block;
	font-weight: 400;
	color: var(--text-gedaempft);
}

.woocommerce-order-received .sl-thankyou table td,
.woocommerce-order-received .sl-thankyou table th {
	overflow-wrap: break-word;
}

@media (min-width: 768px) {
	/* On a wide screen the step sits in the buy column, where the button is
	   beside the hint rather than under it. The height stays 56 px. */
	.sl-logo-button {
		width: auto;
		min-width: 240px;
	}
}
