/* Beschläge aus Hamburg – Warenkorb / Kasse / Mein Konto
 *
 * WICHTIG zur Wartung:
 * Dieses Stylesheet muss NACH Theme, Elementor-Kit und Germanized laden
 * (siehe Enqueue in functions.php, Priorität 100 + dynamische Dependencies).
 * Selektoren sind zusätzlich mit body.woocommerce-* gescoped und adressieren
 * Elemente als Tag+Klasse, um WooCommerce-Defaults mit höherer Spezifität
 * (z. B. .woocommerce a.button.alt) zu schlagen – ohne !important-Wildwuchs.
 * Bei Headlines werden Größe, Zeilenhöhe, Sperrung und Margin IMMER explizit
 * gesetzt, sonst erbt Elementor seine Sofia-Displaygrößen in unsere Boxen.
 *
 *   1. Tokens
 *   2. Basis + Formularelemente
 *   3. Buttons
 *   4. Warenkorb
 *   5. Kasse
 *   6. Mein Konto
 *   7. Responsive
 */

/* 1. Tokens ------------------------------------------------------------ */
:root {
	--ah-color-primary: var(--e-global-color-primary, #BF0103);
	--ah-color-secondary: var(--e-global-color-secondary, #93090A);
	--ah-color-text: var(--e-global-color-text, #111111);
	--ah-color-white: var(--e-global-color-543534e, #FFFFFF);
	--ah-color-black: var(--e-global-color-44448a8, #000000);
	--ah-color-muted: var(--e-global-color-d2cc3b0, #9D9D9D);
	/* EIN einheitlicher Rand fuer alles: Formularfelder, Radio-Karten,
	   Boxen, Tabellenlinien. Immer 1px, immer dieses Hellgrau - kein
	   Schwarz, kein zweiter Grauton. */
	--ah-color-border: #d4d4d4;
	--ah-color-border-strong: #d4d4d4;
	--ah-color-surface: #f6f6f6;
	--ah-color-subtle-text: #6b6b6b;
	--ah-color-success: #2f7a3f;

	--ah-font-heading: var(--e-global-typography-primary-font-family, "Sofia"), sans-serif;
	--ah-font-text: var(--e-global-typography-text-font-family, "Poppins"), sans-serif;
	--ah-font-accent: var(--e-global-typography-accent-font-family, "Poppins"), sans-serif;
	/* Button-Typo wie die Elementor-Buttons der Website (Global-Style
	   8fac5e6 = Sofia 400). Groesse, Sperrung und Uppercase kommen aus dem
	   Design-Handoff und bleiben. */
	--ah-font-button: var(--e-global-typography-8fac5e6-font-family, "Sofia"), sans-serif;
	--ah-font-button-weight: var(--e-global-typography-8fac5e6-font-weight, 400);

	--ah-gap: 24px;
	--ah-radius: 0px;
}

/* 2. Basis + Formularelemente ------------------------------------------ */
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account {
	color: var(--ah-color-text);
	font-family: var(--ah-font-text);
}

/* Overline-Titel der Karten (Zahlungsart, Versandart, Ihre Bestellung …).
   Alle Typo-Eigenschaften explizit gegen die Elementor-Kit-Vererbung.
   Ohne Trennlinie unter der Ueberschrift. */
body.woocommerce-cart .cart_totals h2,
body.woocommerce-checkout h2.ah-order-card__title,
body.woocommerce-checkout h2.ah-payment-title {
	font-family: var(--ah-font-accent);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ah-color-text);
	margin: 0 0 18px;
	padding: 0;
	border: none;
}

/* Radius durchgaengig 0.
   Bewusst mit !important: Theme (Hello Elementor), Child-style.css und
   Elementor setzen auf Formularfelder und Buttons eigene Radien, teils
   selbst mit !important. Da ausschliesslich border-radius betroffen ist
   und die Regel auf die drei Woo-Seiten begrenzt bleibt, ist das hier der
   stabile Weg - Farben, Abstaende und Typografie kommen weiterhin ohne
   !important aus.
   Gescoped auf den .woocommerce-Container, damit Header/Footer-Elemente
   (z. B. Suchfeld) ihre Rundung behalten. */
body.woocommerce-cart .woocommerce :is(input, select, textarea, button, .button, table, img, fieldset, .select2-selection, .select2-selection__rendered),
body.woocommerce-checkout .woocommerce :is(input, select, textarea, button, .button, table, img, fieldset, .select2-selection, .select2-selection__rendered),
body.woocommerce-account .woocommerce :is(input, select, textarea, button, .button, table, img, fieldset, .select2-selection, .select2-selection__rendered) {
	border-radius: 0 !important;
}

/* select2-Dropdown haengt am body, liegt also ausserhalb von .woocommerce */
body.woocommerce-cart .select2-dropdown,
body.woocommerce-cart .select2-search__field,
body.woocommerce-checkout .select2-dropdown,
body.woocommerce-checkout .select2-search__field,
body.woocommerce-account .select2-dropdown,
body.woocommerce-account .select2-search__field {
	border-radius: 0 !important;
}

/* Woos Standard-Radius auf Boxen/Hinweisen ebenfalls entfernen */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error {
	border-radius: 0;
}

body.woocommerce-cart input.input-text,
body.woocommerce-cart textarea,
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="password"],
body.woocommerce-checkout textarea,
body.woocommerce-checkout .select2-container .select2-selection--single,
body.woocommerce-account input.input-text,
body.woocommerce-account input[type="text"],
body.woocommerce-account input[type="password"],
body.woocommerce-account input[type="email"],
body.woocommerce-account textarea {
	font-family: var(--ah-font-text);
	font-size: 15px;
	line-height: 1.5;
	padding: 14px 15px;
	height: auto;
	border: 1px solid var(--ah-color-border-strong);
	border-radius: var(--ah-radius);
	background: var(--ah-color-white);
	color: var(--ah-color-text);
	width: 100%;
	box-shadow: none;
}

body.woocommerce-checkout select,
body.woocommerce-account select {
	font-family: var(--ah-font-text);
	font-size: 15px;
	padding: 13px 15px;
	border: 1px solid var(--ah-color-border-strong);
	border-radius: var(--ah-radius);
	background: var(--ah-color-white);
	color: var(--ah-color-text);
	width: 100%;
}

/* Fokus: gleiche Randdicke, nur Farbwechsel auf Rot (kein Schwarz) */
body.woocommerce-cart input.input-text:focus,
body.woocommerce-checkout input:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout textarea:focus,
body.woocommerce-account input:focus,
body.woocommerce-account select:focus,
body.woocommerce-account textarea:focus {
	outline: none;
	border-color: var(--ah-color-primary);
}

body.woocommerce-checkout .woocommerce form .form-row label,
body.woocommerce-account .woocommerce form .form-row label {
	font-family: var(--ah-font-accent);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ah-color-subtle-text);
	margin-bottom: 7px;
	display: block;
}

/* Checkbox-Labels (AGB, Konto anlegen, abweichende Lieferadresse) bleiben
   normal lesbar - nicht uppercase/gesperrt. */
body.woocommerce-checkout .woocommerce form .form-row label.checkbox,
body.woocommerce-checkout label.woocommerce-form__label-for-checkbox,
body.woocommerce-account label.woocommerce-form__label-for-checkbox {
	font-family: var(--ah-font-text);
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	color: #3d3d3d;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

body.woocommerce-checkout input[type="checkbox"],
body.woocommerce-checkout input[type="radio"],
body.woocommerce-account input[type="checkbox"] {
	accent-color: var(--ah-color-primary);
}

/* Checkboxen (AGB-Bestätigung, abweichende Lieferadresse) auf dem Handy
   besser treffbar als die 13px-Vorgabe des Browsers. */
body.woocommerce-checkout input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message {
	border-top-color: var(--ah-color-primary);
	border-radius: var(--ah-radius);
	font-family: var(--ah-font-text);
	font-size: 14px;
}

body.woocommerce-cart .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-info::before,
body.woocommerce-account .woocommerce-info::before {
	color: var(--ah-color-primary);
}

/* 3. Buttons ----------------------------------------------------------- */
/* .alt-Buttons tragen WooCommerce' Standard-Lila (#a46497) mit Spezifitaet
   0,3,1 - deshalb hier bewusst mit body-Scope darueber. */
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button,
body .woocommerce a.button.alt,
body .woocommerce button.button.alt,
body .woocommerce input.button.alt {
	font-family: var(--ah-font-button);
	font-size: 13px;
	font-weight: var(--ah-font-button-weight);
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-radius: var(--ah-radius);
	border: none;
	padding: 16px 26px;
	background-color: var(--ah-color-primary);
	color: var(--ah-color-white);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body .woocommerce a.button:hover,
body .woocommerce button.button:hover,
body .woocommerce input.button:hover,
body .woocommerce a.button.alt:hover,
body .woocommerce button.button.alt:hover,
body .woocommerce input.button.alt:hover {
	background-color: var(--ah-color-secondary);
	color: var(--ah-color-white);
}

body .woocommerce button.button:disabled,
body .woocommerce button.button:disabled[disabled] {
	background-color: var(--ah-color-surface);
	color: var(--ah-color-muted);
	padding: 16px 26px;
	cursor: not-allowed;
}

body.woocommerce-cart .woocommerce a:hover,
body.woocommerce-checkout .woocommerce a:hover {
	color: var(--ah-color-primary);
}

/* Hinweisbox ueber Warenkorb und Kasse (volle Breite).
   Roter Akzent links statt Vollflaeche, damit der Block als Hinweis lesbar
   bleibt und nicht mit den roten Buttons und Auswahlkarten konkurriert. */
:is(body.woocommerce-cart, body.woocommerce-checkout) .ah-notice-box {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 36px;
	padding: 24px 28px;
	background: var(--ah-color-surface);
	border: 1px solid var(--ah-color-border);
	border-left: 3px solid var(--ah-color-primary);
	border-radius: 0;
}

:is(body.woocommerce-cart, body.woocommerce-checkout) p.ah-notice-box__title {
	margin: 0;
	font-family: var(--ah-font-accent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ah-color-text);
}

:is(body.woocommerce-cart, body.woocommerce-checkout) ul.ah-notice-box__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Kein display:flex am <li>: Text mit <strong> darin zerfiel sonst in
   mehrere Flex-Spalten ("… ausschließlich die | Zahlung per Vorausrechnung").
   Der Marker sitzt stattdessen absolut im linken Einzug. */
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.ah-notice-box__list li {
	display: block;
	position: relative;
	margin: 0;
	padding: 0 0 0 28px;
	font-family: var(--ah-font-text);
	font-size: 14px;
	line-height: 1.65;
	color: #3d3d3d;
	list-style: none;
}

/* Roter Gedankenstrich als Marker - gleiche Optik wie die USP-Listen im
   Design. Rein dekorativ; der Listenkontext bleibt fuer Screenreader ueber
   <ul>/<li> erhalten. */
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.ah-notice-box__list li::before {
	content: "—";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--ah-color-primary);
}

:is(body.woocommerce-cart, body.woocommerce-checkout) ul.ah-notice-box__list strong {
	font-weight: 600;
	color: var(--ah-color-text);
}

@media (max-width: 700px) {
	:is(body.woocommerce-cart, body.woocommerce-checkout) .ah-notice-box {
		padding: 20px;
		margin-bottom: 28px;
	}
}

/* 4. Warenkorb --------------------------------------------------------- */
body.woocommerce-cart .ah-cart-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	grid-template-areas:
		"main   totals"
		"cross  .";
	column-gap: 56px;
	row-gap: var(--ah-gap);
	align-items: start;
}

body.woocommerce-cart .ah-cart-grid .ah-cart-form {
	grid-area: main;
	min-width: 0;
}

/* Entscheidend: .cart-collaterals ist der DOM-Wrapper um Cross-Sells,
   Summenbox und Beratungsbox. Ohne display:contents bleiben diese drei
   Kinder EINES Grid-Items und werden in die 400px-Spalte gequetscht. */
body.woocommerce-cart .ah-cart-grid .cart-collaterals {
	display: contents;
}

body.woocommerce-cart .cart-collaterals .cross-sells {
	grid-area: cross;
	float: none;
	width: auto;
	min-width: 0;
	margin-top: 28px;
}

/* Die Beratungsbox haengt seit 02.10.2026 am Hook woocommerce_after_cart_totals,
   steht also IN der Summenbox. Vorher war sie ein eigenes Grid-Item darunter,
   und die klebende Summenbox schob sich beim Scrollen darueber. */
body.woocommerce-cart .cart-collaterals .cart_totals {
	grid-area: totals;
	float: none;
	width: auto;
	min-width: 0;
	border: 1px solid var(--ah-color-border);
	padding: 28px;
	text-align: left;
}

/* Kleben nur, wenn Summen- und Beratungsbox sicher in den Bildschirm passen -
   sonst waere der untere Teil beim Scrollen nicht erreichbar. */
@media (min-width: 981px) and (min-height: 900px) {
	body.woocommerce-cart .cart-collaterals .cart_totals {
		position: sticky;
		top: 24px;
	}
}

body.woocommerce-cart .cart_totals .ah-cart-help-box {
	background: var(--ah-color-surface);
	margin: 28px -28px -28px;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body.woocommerce-cart .ah-cart-help-box strong {
	font-family: var(--ah-font-text);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

body.woocommerce-cart .ah-cart-help-box p {
	font-size: 14px;
	line-height: 1.6;
	color: #5c5c5c;
	margin: 0;
}

body.woocommerce-cart .ah-cart-help-box a {
	font-size: 15px;
	border-bottom: 1px solid var(--ah-color-border-strong);
	align-self: flex-start;
	text-decoration: none;
}

/* Gutschein-Akkordeon */
body.woocommerce-cart .ah-cart-coupon {
	border: 1px solid var(--ah-color-border);
	margin-bottom: var(--ah-gap);
}

body.woocommerce-cart .ah-cart-coupon summary {
	cursor: pointer;
	list-style: none;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-size: 15px;
}

body.woocommerce-cart .ah-cart-coupon summary::-webkit-details-marker {
	display: none;
}

body.woocommerce-cart .ah-cart-coupon__icon {
	color: var(--ah-color-primary);
	font-size: 18px;
	line-height: 1;
	transition: transform 0.2s ease;
}

body.woocommerce-cart .ah-cart-coupon[open] .ah-cart-coupon__icon {
	transform: rotate(45deg);
}

body.woocommerce-cart .ah-cart-coupon__body {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0 20px 20px;
	max-width: 480px;
}

body.woocommerce-cart .ah-cart-coupon__body input.input-text {
	flex: 1 1 200px;
	width: auto;
}

/* Positionsliste */
body.woocommerce-cart table.ah-cart-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	background: none;
}

body.woocommerce-cart table.ah-cart-table thead {
	display: none;
}

body.woocommerce-cart table.ah-cart-table tbody tr.woocommerce-cart-form__cart-item {
	display: grid;
	grid-template-columns: 44px 120px minmax(0, 1fr) auto;
	grid-template-rows: auto auto auto;
	column-gap: 20px;
	row-gap: 6px;
	align-items: center;
	padding: 26px 0;
	border-top: 1px solid var(--ah-color-border);
	background: none;
}

body.woocommerce-cart table.ah-cart-table td {
	border: none;
	padding: 0;
	background: none;
	vertical-align: top;
}

body.woocommerce-cart table.ah-cart-table td.product-remove {
	grid-column: 1;
	grid-row: 1 / span 3;
	align-self: start;
	text-align: center;
}

body.woocommerce-cart table.ah-cart-table td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--ah-color-muted);
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
	border-radius: 0;
	background: none;
}

body.woocommerce-cart table.ah-cart-table td.product-remove a.remove:hover {
	color: var(--ah-color-white);
	background: var(--ah-color-primary);
}

/* !important: woocommerce-smallscreen.css blendet .product-thumbnail unter
   768px mit "#content table.cart .product-thumbnail" aus (ID-Selektor, gewinnt
   sonst). Das Raster unten rechnet aber mit der Bildspalte. */
body.woocommerce-cart table.ah-cart-table td.product-thumbnail {
	grid-column: 2;
	grid-row: 1 / span 3;
	align-self: start;
	display: block !important;
}

/* Woo erzwingt sonst width:32px auf Bilder in table.cart */
body.woocommerce-cart table.ah-cart-table td.product-thumbnail img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	box-shadow: none;
}

body.woocommerce-cart table.ah-cart-table td.product-name {
	grid-column: 3;
	grid-row: 1;
	font-size: 17px;
	line-height: 1.5;
}

body.woocommerce-cart table.ah-cart-table td.product-name a {
	color: var(--ah-color-text);
	text-decoration: none;
	font-weight: 500;
}

body.woocommerce-cart table.ah-cart-table td.product-name a:hover {
	color: var(--ah-color-primary);
}

/* Lieferzeit / Variantendaten von Germanized */
body.woocommerce-cart table.ah-cart-table td.product-name .wc-gzd-delivery-time-info,
body.woocommerce-cart table.ah-cart-table td.product-name dl.variation,
body.woocommerce-cart table.ah-cart-table td.product-name p {
	font-size: 13px;
	line-height: 1.6;
	color: var(--ah-color-subtle-text);
	margin: 4px 0 0;
}

body.woocommerce-cart table.ah-cart-table td.product-price {
	grid-column: 3;
	grid-row: 2;
	font-size: 14px;
	color: var(--ah-color-subtle-text);
}

body.woocommerce-cart table.ah-cart-table td.product-quantity {
	grid-column: 3;
	grid-row: 3;
}

body.woocommerce-cart table.ah-cart-table td.product-subtotal {
	grid-column: 4;
	grid-row: 1 / span 3;
	align-self: start;
	text-align: right;
	font-size: 19px;
	white-space: nowrap;
}

/* Mengen-Stepper */
body.woocommerce-cart table.ah-cart-table .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--ah-color-border-strong);
	width: -moz-fit-content;
	width: fit-content;
	float: none;
}

body.woocommerce-cart table.ah-cart-table .quantity input.qty {
	width: 48px;
	border: none;
	text-align: center;
	padding: 10px 2px;
	font-size: 15px;
	-moz-appearance: textfield;
	appearance: textfield;
	background: none;
}

body.woocommerce-cart table.ah-cart-table .quantity input.qty::-webkit-outer-spin-button,
body.woocommerce-cart table.ah-cart-table .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

body.woocommerce-cart table.ah-cart-table .quantity button.ah-qty-step {
	background: none;
	border: none;
	width: 38px;
	height: 42px;
	padding: 0;
	font-family: var(--ah-font-text);
	font-size: 17px;
	line-height: 1;
	color: var(--ah-color-text);
	cursor: pointer;
}

body.woocommerce-cart table.ah-cart-table .quantity button.ah-qty-step:hover {
	color: var(--ah-color-primary);
}

body.woocommerce-cart table.ah-cart-table tr.actions td.actions {
	display: flex;
	justify-content: flex-end;
	gap: 16px;
	padding: 20px 0 0;
	border: none;
}

/* Cross-Sells */
body.woocommerce-cart .cross-sells > h2 {
	font-family: var(--ah-font-heading);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	margin: 0 0 20px;
}

body.woocommerce-cart .cross-sells ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-cart .cross-sells ul.products li.product {
	width: auto;
	float: none;
	margin: 0;
	clear: none;
}

/* Summenbox: Woo legt um table.shop_table einen eigenen Rahmen mit Radius -
   der wird hier entfernt, damit Zwischensumme bis Steuerzeile rahmenlos in
   der Box stehen. */
body.woocommerce-cart .cart_totals table,
body.woocommerce-cart .cart_totals table.shop_table {
	width: 100%;
	border: none;
	border-collapse: collapse;
	border-radius: 0;
	margin: 0;
	background: none;
}

body.woocommerce-cart .cart_totals table tr th,
body.woocommerce-cart .cart_totals table tr td {
	border: none;
	padding: 10px 0;
	font-size: 15px;
	line-height: 1.5;
	background: none;
}

body.woocommerce-cart .cart_totals table tr th {
	color: #5c5c5c;
	font-weight: 400;
	text-align: left;
	width: auto;
}

body.woocommerce-cart .cart_totals table tr td {
	text-align: right;
}

body.woocommerce-cart .cart_totals table tr.order-total th,
body.woocommerce-cart .cart_totals table tr.order-total td {
	border-top: 1px solid var(--ah-color-border);
	padding-top: 16px;
	font-size: 17px;
	color: var(--ah-color-text);
}

body.woocommerce-cart .cart_totals table tr.order-total td .woocommerce-Price-amount {
	font-size: 26px;
	font-weight: 400;
}

body.woocommerce-cart .cart_totals table tr.tax-total th,
body.woocommerce-cart .cart_totals table tr.tax-total td,
body.woocommerce-cart .cart_totals table small {
	font-size: 13px;
	color: var(--ah-color-subtle-text);
}

/* Versandart-Zeile in der Warenkorb-Summe: Die Standard-Tabelle stellt
   th/td nebeneinander und richtet den Wert rechts aus - dadurch brachen die
   Radio-Karten um. Label und Karten stehen hier deshalb untereinander und
   linksbuendig, wie in der Kasse. */
body.woocommerce-cart .cart_totals table tr.woocommerce-shipping-totals {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
}

body.woocommerce-cart .cart_totals table tr.woocommerce-shipping-totals th {
	font-family: var(--ah-font-accent);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ah-color-subtle-text);
	padding-bottom: 0;
}

body.woocommerce-cart .cart_totals table tr.woocommerce-shipping-totals td {
	text-align: left;
	padding-top: 0;
}

/* Versandkostenrechner dezent halten */
body.woocommerce-cart .woocommerce-shipping-calculator {
	margin: 12px 0 0;
	font-size: 14px;
}

body.woocommerce-cart .woocommerce-shipping-calculator a.shipping-calculator-button {
	color: var(--ah-color-text);
	text-decoration: none;
	border-bottom: 1px solid var(--ah-color-border);
}

body.woocommerce-cart .woocommerce-shipping-calculator a.shipping-calculator-button:hover {
	color: var(--ah-color-primary);
	border-bottom-color: var(--ah-color-primary);
}

body.woocommerce-cart .shipping-calculator-form {
	margin-top: 12px;
	display: grid;
	gap: 10px;
}

body.woocommerce-cart .wc-proceed-to-checkout {
	padding: 0;
	margin-top: 18px;
}

body .woocommerce .wc-proceed-to-checkout a.checkout-button.button.alt {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 19px 24px;
	font-size: 13px;
	background-color: var(--ah-color-primary);
	color: var(--ah-color-white);
}

body .woocommerce .wc-proceed-to-checkout a.checkout-button.button.alt:hover {
	background-color: var(--ah-color-secondary);
	color: var(--ah-color-white);
}

body.woocommerce-cart .cart-empty {
	font-size: 17px;
	padding: 32px 0 0;
}

body.woocommerce-cart .return-to-shop {
	padding-bottom: 40px;
}

/* 5. Kasse ------------------------------------------------------------- */
body.woocommerce-checkout .ah-checkout-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 430px;
	gap: 48px;
	align-items: start;
}

body.woocommerce-checkout .ah-checkout-main {
	min-width: 0;
}

/* #customer_details ist selbst das .col2-set. Woo floatet .col-1/.col-2
   mit width:48% - beides muss zurueckgesetzt werden, damit die Spalten
   untereinander stehen (Design: Kontakt, darunter Lieferadresse). */
body.woocommerce-checkout .ah-checkout-main #customer_details {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 44px;
}

body.woocommerce-checkout .ah-checkout-main #customer_details .col-1,
body.woocommerce-checkout .ah-checkout-main #customer_details .col-2 {
	float: none;
	width: auto;
	min-width: 0;
}

body.woocommerce-checkout .ah-checkout-main h3,
body.woocommerce-checkout .ah-checkout-main h3 label {
	font-family: var(--ah-font-heading);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ah-color-text);
	margin: 0 0 20px;
	padding: 0;
	border: none;
}

/* "Lieferung an eine andere Adresse?" ist im Woo-Template ein <h3> mit
   Checkbox darin - darf also nicht wie eine Abschnittsueberschrift
   aussehen. */
body.woocommerce-checkout .ah-checkout-main h3#ship-to-different-address {
	font-family: var(--ah-font-text);
	font-size: 15px;
	font-weight: 400;
	margin: 0 0 18px;
}

body.woocommerce-checkout .ah-checkout-main h3#ship-to-different-address label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ah-font-text);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ah-color-text);
	margin: 0;
	padding: 0;
	border: none;
	cursor: pointer;
}

body.woocommerce-checkout .ah-checkout-main .shipping_address {
	margin-bottom: 8px;
}

body.woocommerce-checkout .ah-checkout-main .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .ah-checkout-main .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout .ah-checkout-main .woocommerce-additional-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}

body.woocommerce-checkout .ah-checkout-main .form-row {
	flex: 1 1 100%;
	margin: 0 0 16px;
	padding: 0;
}

body.woocommerce-checkout .ah-checkout-main .form-row-first,
body.woocommerce-checkout .ah-checkout-main .form-row-last {
	flex: 1 1 calc(50% - 8px);
	width: auto;
	float: none;
}

body.woocommerce-checkout .ah-checkout-main textarea#order_comments {
	min-height: 110px;
	resize: vertical;
}

/* Rechte Spalte */
body.woocommerce-checkout .ah-checkout-aside {
	position: sticky;
	top: 24px;
	min-width: 0;
}

body.woocommerce-checkout h3#order_review_heading.ah-checkout-aside__legacy-heading {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Fremde Ueberschriften in der rechten Spalte ausblenden (Germanized gibt
   z. B. "Zahlungsart auswaehlen" aus) - unsere Karten bringen ihre eigenen
   Titel mit. Bewusst auf beliebiger Tiefe statt nur direkte Kinder: die
   Ueberschrift kam zuletzt aus einem Hook innerhalb von .place-order und
   wurde von der frueheren, flacheren Regel nicht erfasst.
   Eigene Titel sind ueber die ah-*-Klasse ausgenommen. */
body.woocommerce-checkout .ah-checkout-aside :is(h1, h2, h3, h4, h5, h6):not([class*="ah-"]) {
	display: none;
}

/* Ausnahmen: Ueberschriften der Zahlungsart-Beschreibungen und des
   eingebundenen AGB-Textes muessen sichtbar bleiben. */
body.woocommerce-checkout .ah-checkout-aside .payment_box :is(h1, h2, h3, h4, h5, h6),
body.woocommerce-checkout .ah-checkout-aside .woocommerce-terms-and-conditions :is(h1, h2, h3, h4, h5, h6) {
	display: block;
}

/* Germanized setzt auf diese Ueberschrift per JS ein Inline-"display:block".
   Inline-Styles schlagen jede Stylesheet-Regel - deshalb ist !important
   hier der einzige Weg. Unsere Zahlungsart-Karte bringt ihren eigenen
   Titel mit, die Ueberschrift waere doppelt. */
body.woocommerce-checkout #order_payment_heading {
	display: none !important;
}

body.woocommerce-checkout #order_review.woocommerce-checkout-review-order {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* #payment wird transparent, damit Zahlungsart-Karte und .place-order
   eigenstaendige Flex-Items von #order_review werden und einzeln in die
   Design-Reihenfolge sortiert werden koennen. */
body.woocommerce-checkout #order_review > #payment {
	display: contents;
}

/* Default fuer ALLES in der rechten Spalte: order 9 = unten. Damit landen
   unbekannte Germanized-Bloecke (Rechtstexte, eigener Kaufbutton) genau
   dort, wo das Design sie erwartet - ohne dass wir ihre Klassen kennen.
   Die Default-Regeln sind nach DOM-Ebene getrennt, damit die folgenden
   Spezialregeln jeweils hoehere Spezifitaet haben. */
body.woocommerce-checkout #order_review > * {
	order: 9;
}

body.woocommerce-checkout #order_review > #payment > * {
	order: 9;
}

body.woocommerce-checkout #order_review > #payment > .ah-order-card--payment {
	order: 1;
}

/* Versandart-Karte: liegt in #payment (wegen AJAX-Fragment), erscheint aber
   direkt unter der Zahlungsart. */
body.woocommerce-checkout #order_review > #payment > .ah-order-card--shipping {
	order: 2;
}

body.woocommerce-checkout #order_review > table.ah-order-table {
	order: 3;
}

/* Germanized kapselt .place-order in .wc-gzd-order-submit - eine Regel auf
   "#payment > .place-order" waere wirkungslos, weil der Button gar nicht in
   #payment liegt. Reihenfolge deshalb auf den echten Kindern setzen:
   Rechtstext-Checkbox, dann Kaufbutton. */
body.woocommerce-checkout #order_review > .wc-gzd-checkbox-placeholder {
	order: 4;
}

body.woocommerce-checkout #order_review > .wc-gzd-order-submit {
	order: 5;
}

/* Germanized haelt fuer jede optionale Pflicht-Checkbox einen Platzhalter
   vor (Download, Service, Altersnachweis ...). Die leeren Divs sind
   Flex-Items und erzeugen sonst je 20px Leerraum. Sobald Germanized einen
   Platzhalter per JS fuellt, trifft :empty nicht mehr und er erscheint. */
body.woocommerce-checkout #order_review > .wc-gzd-checkbox-placeholder:empty {
	display: none;
}

body.woocommerce-checkout .ah-order-card {
	border: 1px solid var(--ah-color-border);
	padding: 24px;
	background: var(--ah-color-white);
}

body.woocommerce-checkout .ah-order-card__edit {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: #7d7d7d;
	white-space: nowrap;
}

/* Bestelluebersicht: bleibt strukturell die Original-Tabelle (Germanized
   haengt dort <tr>-Zeilen ein), wird hier nur als Karte gestaltet. */
body.woocommerce-checkout table.ah-order-table {
	display: block;
	width: 100%;
	border: 1px solid var(--ah-color-border);
	border-collapse: collapse;
	border-radius: 0;
	padding: 24px;
	margin: 0;
	background: var(--ah-color-white);
	font-size: 15px;
}

body.woocommerce-checkout table.ah-order-table caption.ah-order-table__caption {
	caption-side: top;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	text-align: left;
	border: none;
	padding: 0;
	margin: 0 0 18px;
}

body.woocommerce-checkout table.ah-order-table caption .ah-order-card__title {
	font-family: var(--ah-font-accent);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ah-color-text);
}

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

body.woocommerce-checkout table.ah-order-table tbody,
body.woocommerce-checkout table.ah-order-table tfoot {
	display: block;
	width: 100%;
}

body.woocommerce-checkout table.ah-order-table tfoot {
	border-top: 1px solid var(--ah-color-border);
	margin-top: 16px;
	padding-top: 16px;
}

body.woocommerce-checkout table.ah-order-table tr {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px 16px;
	align-items: start;
	background: none;
}

body.woocommerce-checkout table.ah-order-table tbody tr + tr {
	margin-top: 16px;
}

body.woocommerce-checkout table.ah-order-table tfoot tr + tr {
	margin-top: 10px;
}

body.woocommerce-checkout table.ah-order-table th,
body.woocommerce-checkout table.ah-order-table td {
	border: none;
	padding: 0;
	background: none;
	font-size: 15px;
	line-height: 1.5;
}

body.woocommerce-checkout table.ah-order-table tfoot th {
	color: #5c5c5c;
	font-weight: 400;
	text-align: left;
}

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

/* Von Germanized eingehaengte Hinweiszeilen (MwSt./Versand) nutzen colspan
   und sollen die volle Breite einnehmen. */
body.woocommerce-checkout table.ah-order-table tfoot td[colspan],
body.woocommerce-checkout table.ah-order-table tfoot th[colspan] {
	grid-column: 1 / -1;
	text-align: left;
	font-size: 13px;
	color: var(--ah-color-subtle-text);
}

body.woocommerce-checkout table.ah-order-table tfoot tr.order-total {
	border-top: 1px solid var(--ah-color-border);
	margin-top: 14px;
	padding-top: 14px;
	align-items: baseline;
}

body.woocommerce-checkout table.ah-order-table tfoot tr.order-total th {
	font-size: 17px;
	color: var(--ah-color-text);
}

body.woocommerce-checkout table.ah-order-table tfoot tr.order-total td .woocommerce-Price-amount {
	font-size: 26px;
}

body.woocommerce-checkout table.ah-order-table tfoot tr.tax-total th,
body.woocommerce-checkout table.ah-order-table tfoot tr.tax-total td,
body.woocommerce-checkout table.ah-order-table small {
	font-size: 13px;
	color: var(--ah-color-subtle-text);
}

/* Positionszeile: Thumb + Text links, Preis rechts */
body.woocommerce-checkout table.ah-order-table tbody td.product-name {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	column-gap: 12px;
	row-gap: 0;
	align-items: start;
}

body.woocommerce-checkout table.ah-order-table tbody td.product-total {
	text-align: right;
	font-weight: 500;
	white-space: nowrap;
}

body.woocommerce-checkout .ah-order-item__thumb {
	display: block;
	width: 56px;
	max-width: 56px;
	margin: 0;
	padding: 0;
}

body.woocommerce-checkout .ah-order-item__thumb img {
	display: block;
	width: 56px;
	max-width: 56px;
	height: 56px;
	margin: 0;
	object-fit: cover;
}

/* Fremd-Thumbnails werden bereits in review-order.php aus dem Produktnamen
   entfernt (inkl. Wrapper) - hier nur noch Innenabstaende neutralisieren,
   damit der Text direkt neben dem Bild beginnt. */
body.woocommerce-checkout .ah-order-item__info {
	display: block;
	font-size: 15px;
	line-height: 1.5;
	min-width: 0;
	margin: 0;
	padding: 0;
	text-indent: 0;
}

body.woocommerce-checkout .ah-order-item__info > a:first-child,
body.woocommerce-checkout .ah-order-item__info > span:first-child {
	margin-left: 0;
	padding-left: 0;
}

body.woocommerce-checkout .ah-order-item__info dl.variation,
body.woocommerce-checkout .ah-order-item__info .wc-gzd-delivery-time-info,
body.woocommerce-checkout .ah-order-item__info p {
	font-size: 13px;
	line-height: 1.6;
	color: var(--ah-color-subtle-text);
	margin: 4px 0 0;
}

body.woocommerce-checkout .ah-order-item__qty {
	color: #7d7d7d;
	font-size: 13px;
}

/* Mehrere Sendungen: Paketname ueber der jeweiligen Radio-Liste */
body.woocommerce-checkout .ah-order-card--shipping p.ah-shipping-package__name {
	font-size: 13px;
	color: var(--ah-color-subtle-text);
	margin: 0 0 8px;
}

body.woocommerce-checkout .ah-order-card--shipping ul + p.ah-shipping-package__name {
	margin-top: 16px;
}

/* Versandart- und Zahlungsart-Radios als Karten.
   Bewusst fuer Warenkorb UND Kasse gescoped (:is(...) aendert die
   Spezifitaet nicht, haelt die Selektoren aber lesbar): Im Warenkorb steht
   dieselbe Versandart-Liste in der Summenbox und soll identisch aussehen -
   sonst erscheinen dort die blauen Browser-Standard-Radios. */
:is(body.woocommerce-cart, body.woocommerce-checkout) ul#shipping_method,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.woocommerce-shipping-methods,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.wc_payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
	border: none;
	text-align: left;
}

/* Das <li> traegt die Positionierung, damit das absolut gesetzte Radio
   keinen Platz einnimmt. Bei den Versandarten steht das input als
   Geschwister VOR dem label (Core-Markup) - ohne Flex hier landete der
   Punkt in einer eigenen Zeile ueber dem Text. */
:is(body.woocommerce-cart, body.woocommerce-checkout) ul#shipping_method li,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.woocommerce-shipping-methods li,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.wc_payment_methods li.ah-payment-method {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--ah-color-border-strong);
	margin: 0;
	padding: 0;
	background: none;
	list-style: none;
	transition: border-color 0.15s ease;
}

/* Hover: identische Randdicke (1px), nur Farbwechsel auf Rot */
:is(body.woocommerce-cart, body.woocommerce-checkout) ul#shipping_method li:hover,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.woocommerce-shipping-methods li:hover,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.wc_payment_methods li.ah-payment-method:hover {
	border-color: var(--ah-color-primary);
	box-shadow: none;
}

/* Radio-Punkt entfernen: Die Auswahl wird durch die gefuellte Flaeche
   angezeigt. Bewusst visuell versteckt statt display:none - so bleibt das
   Feld fokussierbar, per Tastatur bedienbar und fuer Screenreader lesbar. */
:is(body.woocommerce-cart, body.woocommerce-checkout) ul#shipping_method li input.shipping_method,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.woocommerce-shipping-methods li input.shipping_method,
:is(body.woocommerce-cart, body.woocommerce-checkout) label.ah-payment-method__label input.input-radio {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	appearance: none;
}

/* Ausgewaehlte Option: Flaeche vollflaechig rot, Text weiss.
   .ah-option--selected wird per JS gesetzt - als Fallback fuer Browser
   ohne :has()-Support und weil die serverseitige Klasse bei Klick sonst
   veralten wuerde. Nur das Label wird gefuellt, nicht die .payment_box
   darunter (dort stehen Gateway-Felder/Iframes). */
:is(body.woocommerce-cart, body.woocommerce-checkout) ul#shipping_method li:has(input:checked),
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.woocommerce-shipping-methods li:has(input:checked),
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.wc_payment_methods li.ah-payment-method:has(input:checked),
:is(body.woocommerce-cart, body.woocommerce-checkout) ul#shipping_method li.ah-option--selected,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.woocommerce-shipping-methods li.ah-option--selected,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.wc_payment_methods li.ah-option--selected {
	border-color: var(--ah-color-primary);
	box-shadow: none;
}

:is(body.woocommerce-cart, body.woocommerce-checkout) ul#shipping_method li:has(input:checked) > label,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.woocommerce-shipping-methods li:has(input:checked) > label,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.wc_payment_methods li.ah-payment-method:has(input:checked) > label,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul#shipping_method li.ah-option--selected > label,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.woocommerce-shipping-methods li.ah-option--selected > label,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.wc_payment_methods li.ah-option--selected > label {
	background-color: var(--ah-color-primary);
	color: var(--ah-color-white);
}

:is(body.woocommerce-cart, body.woocommerce-checkout) ul#shipping_method li:has(input:checked) > label *,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.woocommerce-shipping-methods li:has(input:checked) > label *,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.wc_payment_methods li.ah-payment-method:has(input:checked) > label *,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul#shipping_method li.ah-option--selected > label *,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.woocommerce-shipping-methods li.ah-option--selected > label *,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.wc_payment_methods li.ah-option--selected > label * {
	color: var(--ah-color-white);
}

/* Tastatur-Fokus muss sichtbar bleiben, da das Radio selbst versteckt ist */
:is(body.woocommerce-cart, body.woocommerce-checkout) ul#shipping_method li:has(input:focus-visible) > label,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.woocommerce-shipping-methods li:has(input:focus-visible) > label,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.wc_payment_methods li.ah-payment-method:has(input:focus-visible) > label {
	outline: 2px solid var(--ah-color-primary);
	outline-offset: -4px;
}

:is(body.woocommerce-cart, body.woocommerce-checkout) ul#shipping_method li label,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.woocommerce-shipping-methods li label,
:is(body.woocommerce-cart, body.woocommerce-checkout) label.ah-payment-method__label {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 15px 17px;
	cursor: pointer;
	font-family: var(--ah-font-text);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
	color: var(--ah-color-text);
}

/* Preis der Versandart rechts ausrichten */
:is(body.woocommerce-cart, body.woocommerce-checkout) ul#shipping_method li label .woocommerce-Price-amount,
:is(body.woocommerce-cart, body.woocommerce-checkout) ul.woocommerce-shipping-methods li label .woocommerce-Price-amount {
	margin-left: auto;
	padding-left: 12px;
	font-weight: 500;
	white-space: nowrap;
}

body.woocommerce-checkout .ah-payment-method__title {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 16px;
	font-weight: 500;
	min-width: 0;
}

body.woocommerce-checkout em.ah-payment-method__desc {
	font-style: normal;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--ah-color-subtle-text);
}

body.woocommerce-checkout .ah-payment-method__icon {
	flex: 0 0 auto;
	line-height: 0;
}

body.woocommerce-checkout .ah-payment-method__icon img {
	max-height: 26px;
	width: auto;
	margin: 0 0 0 2px;
	display: inline-block;
}

body.woocommerce-checkout li.ah-payment-method .payment_box {
	margin: 0;
	padding: 14px 17px 17px;
	background: none;
	border-radius: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ah-color-subtle-text);
}

body.woocommerce-checkout li.ah-payment-method .payment_box::before {
	display: none;
}

/* Rechtstexte + Kaufbutton */
body.woocommerce-checkout .place-order {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	border: none;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
	font-size: 13px;
	line-height: 1.6;
	color: #3d3d3d;
	margin: 0;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
	color: inherit;
	border-bottom: 1px solid var(--ah-color-border);
	text-decoration: none;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a:hover {
	color: var(--ah-color-primary);
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row {
	margin: 0;
	padding: 0;
}

/* Germanized-Rechtstext-Checkbox: liegt in .wc-gzd-checkbox-placeholder,
   also ausserhalb von .place-order - braucht eigene Regeln. Texte und
   Pflichtlogik bleiben unangetastet, nur die Optik. */
body.woocommerce-checkout .wc-gzd-checkbox-placeholder p.form-row,
body.woocommerce-checkout p.checkbox-legal {
	margin: 0;
	padding: 0;
}

body.woocommerce-checkout .woocommerce-gzd-legal-checkbox-text,
body.woocommerce-checkout .wc-gzd-checkbox-placeholder label.checkbox {
	font-family: var(--ah-font-text);
	font-size: 13px;
	line-height: 1.6;
	letter-spacing: 0;
	text-transform: none;
	color: #3d3d3d;
}

body.woocommerce-checkout .woocommerce-gzd-legal-checkbox-text a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--ah-color-border);
}

body.woocommerce-checkout .woocommerce-gzd-legal-checkbox-text a:hover {
	color: var(--ah-color-primary);
	border-bottom-color: var(--ah-color-primary);
}

/* Lieferzeit-/Produktinfos von Germanized in der Bestelluebersicht */
body.woocommerce-checkout .ah-order-item__info .wc-gzd-cart-item-name-wrapper {
	display: block;
	font-size: 15px;
	line-height: 1.5;
}

body.woocommerce-checkout .ah-order-item__info p.wc-gzd-cart-info {
	font-size: 13px;
	line-height: 1.6;
	color: var(--ah-color-subtle-text);
	margin: 4px 0 0;
}

body.woocommerce-checkout #place_order,
body.woocommerce-checkout button#place_order.button.alt {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	float: none;
	margin: 0;
	padding: 20px 26px;
	font-family: var(--ah-font-button);
	font-size: 14px;
	font-weight: var(--ah-font-button-weight);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	background-color: var(--ah-color-primary);
	color: var(--ah-color-white);
	border: none;
	border-radius: var(--ah-radius);
}

body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout button#place_order.button.alt:hover {
	background-color: var(--ah-color-secondary);
	color: var(--ah-color-white);
}

/* Schloss-Icon vor dem Label (Label selbst bleibt Germanized-Einstellung) */
body.woocommerce-checkout #place_order::before {
	content: "";
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='4' y='11' width='16' height='10' rx='1'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='4' y='11' width='16' height='10' rx='1'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Login-/Coupon-Hinweise oben */
body.woocommerce-checkout form.woocommerce-form-login,
body.woocommerce-checkout form.woocommerce-form-coupon {
	border: 1px solid var(--ah-color-border);
	border-radius: var(--ah-radius);
	padding: 24px;
	margin: 0 0 24px;
}

body.woocommerce-checkout .woocommerce-info a.showlogin,
body.woocommerce-checkout .woocommerce-info a.showcoupon {
	color: var(--ah-color-primary);
	font-weight: 500;
}

/* 6. Mein Konto -------------------------------------------------------- */
/* Der grosse Abstand gehoert UEBER den automatisch ausgegebenen Seitentitel
   ("Mein Konto"), damit dieser nicht am Header klebt. Zwischen Titel und
   Inhalt bleiben nur 1rem. */
body.woocommerce-account .page-header,
body.woocommerce-account h1.entry-title,
body.woocommerce-account h1.page-title {
	margin-top: 5rem;
	margin-bottom: 1rem;
}

/* Oben kein zusaetzliches Polster mehr (das macht der Titel-Abstand),
   unten weiter 5rem Luft zum Footer. Sitzt auf dem .woocommerce-Container,
   damit es auch fuer die Login-/Registrierungsansicht gilt (die nutzt das
   ah-account-layout nicht). */
body.woocommerce-account .woocommerce {
	padding-top: 0;
	padding-bottom: 5rem;
}

body.woocommerce-account .ah-account-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
	position: sticky;
	top: 24px;
	float: none;
	width: auto;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
	border: none;
	border-left: 2px solid transparent;
	margin: 0;
	padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 12px 16px;
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	text-decoration: none;
	color: var(--ah-color-text);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active {
	border-left-color: var(--ah-color-primary);
	background: var(--ah-color-surface);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	color: var(--ah-color-primary);
}

body.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	min-width: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
	font-family: var(--ah-font-heading);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	margin: 0 0 16px;
}

body.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
	margin-top: 0;
}

body.woocommerce-account table.shop_table,
body.woocommerce-account table.woocommerce-orders-table {
	width: 100%;
	border: none;
	border-collapse: collapse;
	border-radius: 0;
	margin: 20px 0;
	background: none;
}

body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td,
body.woocommerce-account table.woocommerce-orders-table th,
body.woocommerce-account table.woocommerce-orders-table td {
	border: none;
	border-bottom: 1px solid var(--ah-color-border);
	padding: 14px 12px;
	text-align: left;
	font-size: 14px;
	background: none;
}

body.woocommerce-account table.shop_table thead th,
body.woocommerce-account table.woocommerce-orders-table thead th {
	font-family: var(--ah-font-accent);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ah-color-subtle-text);
	border-bottom: 1px solid var(--ah-color-border);
}

body.woocommerce-account .woocommerce-orders-table__cell-order-status mark {
	background: none;
	color: var(--ah-color-success);
	font-weight: 500;
}

body.woocommerce-account .woocommerce-Addresses.col2-set {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

body.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: auto;
	border: 1px solid var(--ah-color-border);
	padding: 20px;
}

body.woocommerce-account .woocommerce-Address-title {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 12px;
}

body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 {
	font-size: 17px;
	margin: 0;
}

body.woocommerce-account .woocommerce-Address-title a.edit {
	font-size: 13px;
	color: var(--ah-color-primary);
	white-space: nowrap;
}

body.woocommerce-account .woocommerce-Address address {
	font-style: normal;
	font-size: 14px;
	line-height: 1.7;
	color: #4f4f4f;
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset {
	border: 1px solid var(--ah-color-border);
	padding: 20px;
	margin-top: 24px;
}

body.woocommerce-account .woocommerce-EditAccountForm legend {
	font-family: var(--ah-font-accent);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0 8px;
}

body.woocommerce-account .woocommerce-form-login,
body.woocommerce-account .woocommerce-form-register {
	border: 1px solid var(--ah-color-border);
	border-radius: var(--ah-radius);
	padding: 28px;
}

/* 7. Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
	body.woocommerce-cart .ah-cart-grid {
		grid-template-columns: minmax(0, 1fr) 340px;
		column-gap: 32px;
	}

	body.woocommerce-checkout .ah-checkout-grid {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 32px;
	}
}

@media (max-width: 980px) {
	body.woocommerce-cart .ah-cart-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"main"
			"totals"
			"cross";
	}

	body.woocommerce-cart .cross-sells ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.woocommerce-checkout .ah-checkout-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woocommerce-checkout .ah-checkout-aside {
		position: static;
	}

	body.woocommerce-account .ah-account-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation {
		position: static;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 4px;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li {
		border-left: none;
		border-bottom: 2px solid transparent;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active {
		border-left-color: transparent;
		border-bottom-color: var(--ah-color-primary);
	}

	body.woocommerce-account .woocommerce-Addresses.col2-set {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 700px) {
	body.woocommerce-cart table.ah-cart-table tbody tr.woocommerce-cart-form__cart-item {
		grid-template-columns: 34px 84px minmax(0, 1fr);
		grid-template-rows: auto auto auto auto;
		column-gap: 14px;
	}

	body.woocommerce-cart table.ah-cart-table td.product-subtotal {
		grid-column: 3;
		grid-row: 4;
		text-align: left;
		font-size: 17px;
		margin-top: 4px;
	}

	body.woocommerce-cart table.ah-cart-table td.product-remove,
	body.woocommerce-cart table.ah-cart-table td.product-thumbnail {
		grid-row: 1 / span 4;
	}

	body.woocommerce-cart table.ah-cart-table tr.actions td.actions {
		flex-direction: column;
	}

	body.woocommerce-cart .cross-sells ul.products {
		grid-template-columns: minmax(0, 1fr);
	}

	body.woocommerce-checkout .ah-checkout-main .form-row-first,
	body.woocommerce-checkout .ah-checkout-main .form-row-last {
		flex: 1 1 100%;
	}

	body.woocommerce-checkout .ah-order-card {
		padding: 20px;
	}
}
