/* Modul Kasse: Warenkorb, Kasse, Bestellbestätigung. Alles unter .ghm-kasse-seite (main der Vorlagen) bzw. .ghm-checkout-head. */

.ghm-kasse-seite {
	--ghm-kasse-linie: rgba(135, 90, 18, .22);
	--ghm-kasse-feld: rgba(90, 75, 60, .55);
	--ghm-kasse-pad: clamp(1rem, 2.4vw, 1.75rem);
}

/* ---------- Kopf der Kasse (Logo + Weg zurück) ---------- */

.ghm-checkout-back {
	color: var(--wp--preset--color--gold);
	font-size: .95rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	padding: .55em .25em;
}
.ghm-checkout-back:hover { color: var(--wp--preset--color--creme); text-decoration: underline; text-underline-offset: .25em; }
.ghm-checkout-back span { display: inline-block; margin-right: .15em; }
.ghm-checkout-head .wc-block-cart-link { display: none; }
.woocommerce-order-received .ghm-checkout-back { display: none; }

/* ---------- Überschrift und Fortschritt ---------- */

.ghm-kasse-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 2rem;
	margin-bottom: var(--wp--preset--spacing--40);
}
.ghm-kasse-kopf .ghm-kasse-titel { margin: 0; font-size: var(--wp--preset--font-size--xx-large); }
.ghm-schritte {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .9rem;
	font-weight: 500;
	color: var(--wp--preset--color--tinte-3);
}
.ghm-schritt { display: flex; align-items: center; gap: .5rem; }
.ghm-schritt + .ghm-schritt::before {
	content: "";
	width: clamp(1.25rem, 5vw, 3rem);
	height: 1px;
	margin-inline: .5rem;
	background: rgba(135, 90, 18, .35);
}
.ghm-schritt a { display: flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; }
.ghm-schritt a:hover .ghm-schritt__text { text-decoration: underline; text-underline-offset: .2em; }
.ghm-schritt__nr {
	display: grid;
	place-items: center;
	flex: none;
	width: 1.65rem;
	height: 1.65rem;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: .8rem;
	line-height: 1;
}
.ghm-schritt.is-aktuell { color: var(--wp--preset--color--tinte); }
.ghm-schritt.is-aktuell .ghm-schritt__nr { background: var(--wp--preset--color--nacht); border-color: var(--wp--preset--color--nacht); color: var(--wp--preset--color--creme); }
.ghm-schritt.is-erledigt { color: var(--wp--preset--color--gold-tief); }
.ghm-schritt.is-erledigt .ghm-schritt__nr { background: var(--wp--preset--color--gold-tief); border-color: var(--wp--preset--color--gold-tief); color: #fff; }
@media (max-width: 600px) {
	.ghm-kasse-kopf { gap: 1rem; }
	/* Fortschritt mittig, beide Verbindungslinien gleich lang (Kilian 2026-12-03) */
	.ghm-schritte { width: 100%; justify-content: center; font-size: .85rem; }
	.ghm-schritt + .ghm-schritt::before { flex: none; width: clamp(.9rem, 6vw, 2.25rem); margin-inline: .5rem; }
	.ghm-schritt { flex: none; }
}
@media (max-width: 380px) {
	.ghm-schritte { font-size: .8rem; }
	.ghm-schritt, .ghm-schritt a { gap: .35rem; }
	.ghm-schritt + .ghm-schritt::before { margin-inline: .35rem; }
	.ghm-schritt__nr { width: 1.5rem; height: 1.5rem; }
}

/* ---------- Karten: Artikel, Summe, Kassen-Abschnitte ---------- */

.ghm-kasse-seite .wc-block-cart-items,
.ghm-kasse-seite .wp-block-woocommerce-cart-totals-block,
.ghm-kasse-seite .wc-block-checkout__sidebar > .wp-block-woocommerce-checkout-order-summary-block,
.ghm-kasse-seite .wc-block-checkout__sidebar > .wc-gzd-checkout-submit,
.ghm-kasse-seite .wc-block-components-checkout-step {
	background: var(--wp--preset--color--karte);
	border-radius: var(--ghm-radius);
	box-shadow: var(--ghm-shadow);
}

/* ---------- Warenkorb: Artikelliste ---------- */

.ghm-kasse-seite .wc-block-cart-items {
	border: 0;
	padding: 0 0 .5rem;
}
.ghm-kasse-seite .wc-block-cart-items th {
	padding: 1rem 0 .75rem;
	border-bottom: 1px solid var(--ghm-kasse-linie);
	color: var(--wp--preset--color--tinte-3);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.ghm-kasse-seite .wc-block-cart-items :is(th, td):first-child { padding-left: var(--ghm-kasse-pad); }
.ghm-kasse-seite .wc-block-cart-items :is(th, td):last-child { padding-right: var(--ghm-kasse-pad); }
.ghm-kasse-seite .wc-block-cart-items td { border-top: 0; padding-block: 1.25rem; }
.ghm-kasse-seite .wc-block-cart-items .wc-block-cart-items__row + .wc-block-cart-items__row td { border-top: 1px solid var(--ghm-kasse-linie); }
.ghm-kasse-seite .wc-block-cart-item__image img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.ghm-kasse-seite .wc-block-cart-items .wc-block-components-product-name { font-size: 1.0625rem; }
.ghm-kasse-seite .wc-block-cart-item__total .wc-block-components-product-price { font-size: 1.0625rem; font-weight: 500; }
.ghm-kasse-seite .wc-block-components-product-price__value { color: var(--wp--preset--color--tinte); }
.ghm-kasse-seite .wc-block-components-product-metadata,
.ghm-kasse-seite .wc-block-components-product-details { font-size: .8125rem; color: var(--wp--preset--color--tinte-3); }
.ghm-kasse-seite .wc-block-cart-item__prices .wc-block-components-product-price { font-weight: 500; }

/* Mengenfeld und Entfernen */
.ghm-kasse-seite .wc-block-components-quantity-selector {
	border: 1px solid var(--ghm-kasse-feld);
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
}
.ghm-kasse-seite .wc-block-components-quantity-selector::after { border: 0; }
.ghm-kasse-seite .wc-block-components-quantity-selector__input { font-family: inherit; color: var(--wp--preset--color--tinte); }
.ghm-kasse-seite .wc-block-components-quantity-selector__button { color: var(--wp--preset--color--tinte); min-width: 2.25rem; }
.ghm-kasse-seite .wc-block-components-quantity-selector:focus-within { border-color: var(--wp--preset--color--gold-tief); box-shadow: 0 0 0 1px var(--wp--preset--color--gold-tief); }
.ghm-kasse-seite .wc-block-cart-item__remove-link {
	color: var(--wp--preset--color--tinte-2);
	font-size: .8125rem;
	text-decoration: underline;
	text-underline-offset: .2em;
}
.ghm-kasse-seite .wc-block-cart-item__remove-link:hover { color: var(--wp--preset--color--tinte); }

/* Weiter einkaufen */
.ghm-kasse-weiter { margin: 1rem 0 0; font-size: .95rem; }
.ghm-kasse-weiter a { font-weight: 500; text-decoration: none; }
.ghm-kasse-weiter a:hover { text-decoration: underline; text-underline-offset: .25em; }

/* ---------- Summenbox (Warenkorb und Kasse) ---------- */

.ghm-kasse-seite .wp-block-woocommerce-cart-totals-block { padding: var(--ghm-kasse-pad); }
.ghm-kasse-seite .wc-block-components-sidebar .wc-block-components-totals-wrapper { padding-inline: 0; }
/* Summenbox klebt nur, wenn sie neben den Artikeln steht (breit). Am Handy steht sie darunter, dort würde sie beim Scrollen mitrutschen. */
.ghm-kasse-seite .wc-block-cart.is-large .wc-block-components-sidebar { position: sticky; top: 7rem; align-self: flex-start; }
.ghm-kasse-seite .wc-block-cart__totals-title {
	padding: 0 0 .75rem;
	color: var(--wp--preset--color--tinte);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
}
.ghm-kasse-seite .wc-block-components-totals-item { font-size: .9375rem; }
.ghm-kasse-seite .wc-block-components-totals-item__label { color: var(--wp--preset--color--tinte-2); }
.ghm-kasse-seite .wc-block-components-totals-item__value { color: var(--wp--preset--color--tinte); font-weight: 500; }
.ghm-kasse-seite .wc-block-components-totals-footer-item { font-size: 1.0625rem; }
.ghm-kasse-seite .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { color: var(--wp--preset--color--tinte); font-weight: 500; }
.ghm-kasse-seite .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--wp--preset--font-family--fraunces); font-size: 1.4rem; font-weight: 500; }
.ghm-kasse-seite .wc-block-components-totals-item__description,
.ghm-kasse-seite .wc-block-components-totals-shipping__change-address__link,
.ghm-kasse-seite .wc-block-components-totals-taxes + .wc-block-components-totals-item__description { color: var(--wp--preset--color--tinte-3); font-size: .8125rem; }
.ghm-kasse-seite .wc-block-components-totals-wrapper { border-color: var(--ghm-kasse-linie); }

/* Kasse-Knopf: golden, groß, gut sichtbar */
.ghm-kasse-seite .wc-block-cart__submit-button,
.ghm-kasse-seite .wc-block-components-checkout-place-order-button {
	width: 100%;
	min-height: 3.4rem;
	padding: 1rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--gold);
	color: #2a1d0e;
	font-family: inherit;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: .02em;
	box-shadow: 0 10px 22px -14px rgba(135, 90, 18, .9);
	transition: background-color .2s ease, transform .2s ease;
}
.ghm-kasse-seite .wc-block-cart__submit-button:hover,
.ghm-kasse-seite .wc-block-components-checkout-place-order-button:hover:not(:disabled) { background: #f4d498; color: #2a1d0e; }
.ghm-kasse-seite .wc-block-cart__submit-button:focus-visible,
.ghm-kasse-seite .wc-block-components-checkout-place-order-button:focus-visible { outline: 2px solid var(--wp--preset--color--gold-tief); outline-offset: 3px; }
/* Platz des Kasse-Knopfs bleibt frei, auch wenn WooCommerce ihn am Handy als Leiste unten anheftet (--sticky).
   Sonst wird die Seite bei jedem Umschalten rund 70 px kürzer oder länger, und am iPhone springt die Seite beim Scrollen. */
.ghm-kasse-seite .wc-block-cart__submit { min-height: 3.4rem; margin-top: .5rem; }
.ghm-kasse-seite .wc-block-cart__submit-container { padding: 0; margin-top: 0; }

/* Handy: mitlaufende Leiste mit dem Kasse-Knopf (WooCommerce blendet sie ein, solange der Knopf in der Summenbox nicht zu sehen ist) */
.ghm-kasse-seite .wc-block-cart__submit-container--sticky {
	padding: .75rem max(1rem, 4vw) calc(.75rem + env(safe-area-inset-bottom, 0px));
	background: var(--wp--preset--color--honig-weiss);
	border-top: 1px solid var(--ghm-kasse-linie);
	box-shadow: 0 -12px 24px -18px rgba(70, 45, 15, .5);
}
.ghm-kasse-seite .wc-block-cart__submit-container--sticky::before { content: none; }

/* Vertrauenshinweise */
.ghm-vertrauen {
	display: grid;
	gap: .55rem;
	margin: 1.25rem 0 0;
	padding: 1.1rem 0 0;
	border-top: 1px solid var(--ghm-kasse-linie);
	list-style: none;
	color: var(--wp--preset--color--tinte-2);
	font-size: .875rem;
	line-height: 1.4;
}
.ghm-vertrauen li { position: relative; margin: 0; padding-left: 1.65rem; }
.ghm-vertrauen li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .1em;
	width: 1.05rem;
	height: 1.05rem;
	background: var(--wp--preset--color--gold-tief);
	-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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ghm-vertrauen a { color: var(--wp--preset--color--gold-tief); }

/* ---------- Leerer Warenkorb ---------- */

.ghm-kasse-seite .wp-block-woocommerce-empty-cart-block { text-align: center; padding-block: var(--wp--preset--spacing--40); }
.ghm-kasse-seite .wc-block-cart__empty-cart__title { margin: 0 0 .5rem; font-size: var(--wp--preset--font-size--x-large); }
.ghm-kasse-seite .wc-block-cart__empty-cart__title.with-empty-cart-icon::before { content: none; display: none; }
.ghm-kasse-leer__text { max-width: 32em; margin: 0 auto 1.5rem; color: var(--wp--preset--color--tinte-2); }
.ghm-kasse-leer__mehr { margin: var(--wp--preset--spacing--50) 0 1rem; font-size: var(--wp--preset--font-size--large); }
.ghm-kasse-seite .wp-block-woocommerce-empty-cart-block .is-style-cards { text-align: left; }

/* ---------- Kasse: Abschnitte ---------- */

.ghm-kasse-seite .wc-block-checkout__main { padding-right: 0; }
.ghm-kasse-seite .wc-block-components-checkout-step {
	margin: 0 0 1rem;
	padding: var(--ghm-kasse-pad);
	border: 0;
}
.ghm-kasse-seite .wc-block-components-checkout-step__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
}
.ghm-kasse-seite .wc-block-components-checkout-step__heading { margin-bottom: 1rem; }
.ghm-kasse-seite .wc-block-components-checkout-step__description { color: var(--wp--preset--color--tinte-2); font-size: .875rem; }
.ghm-kasse-seite .wc-block-components-checkout-step__container::after { content: none; }
.ghm-kasse-seite .wc-block-components-checkout-step__content { padding-inline: 0; }

/* Felder */
.ghm-kasse-seite .wc-block-components-text-input input,
.ghm-kasse-seite .wc-block-components-text-input textarea,
.ghm-kasse-seite .wc-block-components-textarea,
.ghm-kasse-seite .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.ghm-kasse-seite .wc-blocks-components-select .wc-blocks-components-select__select,
.ghm-kasse-seite .wc-block-components-form .wc-block-components-text-input input[type] {
	border: 1px solid var(--ghm-kasse-feld);
	border-radius: 10px;
	background-color: #fff;
	color: var(--wp--preset--color--tinte);
	font-family: inherit;
	font-size: 1rem;
	box-shadow: none;
}
.ghm-kasse-seite .wc-block-components-text-input input:focus,
.ghm-kasse-seite .wc-block-components-text-input textarea:focus,
.ghm-kasse-seite .wc-block-components-textarea:focus,
.ghm-kasse-seite .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
.ghm-kasse-seite .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--wp--preset--color--gold-tief);
	box-shadow: 0 0 0 1px var(--wp--preset--color--gold-tief);
	outline: 0;
}
.ghm-kasse-seite .wc-block-components-text-input label,
.ghm-kasse-seite .wc-block-components-combobox .components-form-token-field__label,
.ghm-kasse-seite .wc-blocks-components-select__label { color: var(--wp--preset--color--tinte-2); }
.ghm-kasse-seite .wc-block-components-text-input.has-error input { border-color: #b3402a; box-shadow: 0 0 0 1px #b3402a; }
.ghm-kasse-seite .wc-block-components-validation-error { color: #a03520; }
.ghm-kasse-seite .wc-block-components-address-form__address_2-toggle,
.ghm-kasse-seite .wc-block-checkout__add-note .wc-block-components-checkbox { color: var(--wp--preset--color--gold-tief); }

/* Auswahl: Versand/Abholung, Versandmöglichkeiten, Zahlarten */
.ghm-kasse-seite .wc-block-checkout__shipping-method-container {
	border: 1px solid var(--ghm-kasse-feld);
	border-radius: 12px;
	overflow: hidden;
	background: var(--wp--preset--color--sand);
}
.ghm-kasse-seite .wc-block-checkout__shipping-method-option { border: 0; color: var(--wp--preset--color--tinte-2); font-family: inherit; font-weight: 500; }
.ghm-kasse-seite .wc-block-checkout__shipping-method-option--selected {
	background: #fff;
	color: var(--wp--preset--color--tinte);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--gold-tief);
	border-radius: 12px;
}
.ghm-kasse-seite .wc-block-components-radio-control__option,
.ghm-kasse-seite .wc-block-components-radio-control-accordion-option {
	border: 1px solid var(--ghm-kasse-linie);
	border-radius: 12px;
	background: #fff;
}
.ghm-kasse-seite .wc-block-components-radio-control__option-checked,
.ghm-kasse-seite .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option-checked { border-color: var(--wp--preset--color--gold-tief); box-shadow: 0 0 0 1px var(--wp--preset--color--gold-tief); }
.ghm-kasse-seite .wc-block-components-radio-control__input:checked:before,
.ghm-kasse-seite .wc-block-components-radio-control__input:checked { border-color: var(--wp--preset--color--gold-tief); }
.ghm-kasse-seite .wc-block-components-radio-control__input:checked::before { background: var(--wp--preset--color--gold-tief); }
.ghm-kasse-seite .wc-block-components-radio-control__label,
.ghm-kasse-seite .wc-block-components-radio-control__secondary-label { color: var(--wp--preset--color--tinte); }
.ghm-kasse-seite .wc-block-components-radio-control__description,
.ghm-kasse-seite .wc-block-components-radio-control__secondary-description { color: var(--wp--preset--color--tinte-2); font-size: .875rem; }

/* Zahlungsarten mit Beschreibung (Akkordeon, z. B. PayPal „Mit PayPal zahlen.“): eine Karte statt zwei Rahmen.
   Der Rahmen sitzt außen am Akkordeon, nicht am Label; WooCommerce zieht zusätzlich einen Rahmen um die ganze Gruppe (::after). */
.ghm-kasse-seite .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option,
.ghm-kasse-seite .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option-checked { border: 0; box-shadow: none; background: transparent; }
.ghm-kasse-seite .wc-block-components-radio-control-accordion-option { box-shadow: none; overflow: hidden; }
.ghm-kasse-seite .wc-block-components-radio-control-accordion-option + .wc-block-components-radio-control-accordion-option { margin-top: .5rem; }
.ghm-kasse-seite .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted { border-color: var(--wp--preset--color--gold-tief); box-shadow: 0 0 0 1px var(--wp--preset--color--gold-tief); }
.ghm-kasse-seite .wc-block-components-radio-control-accordion-content { padding: 0 16px 16px 48px; border: 0; color: var(--wp--preset--color--tinte-2); font-size: .875rem; }
.ghm-kasse-seite .wc-block-components-radio-control-accordion-content:empty { display: none; }
.ghm-kasse-seite .wc-block-components-radio-control--highlight-checked::after,
.ghm-kasse-seite .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option::after { display: none; }

/* Checkboxen (auch Germanized): lesbar, aber leise */
.ghm-kasse-seite .wc-block-components-checkbox { font-size: .9375rem; color: var(--wp--preset--color--tinte); }
.ghm-kasse-seite .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	border: 1px solid var(--ghm-kasse-feld);
	border-radius: 5px;
	background: #fff;
}
.ghm-kasse-seite .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--wp--preset--color--gold-tief); border-color: var(--wp--preset--color--gold-tief); }
.ghm-kasse-seite .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }
.ghm-kasse-seite .wp-block-woocommerce-germanized-checkout-checkboxes,
.ghm-kasse-seite .wc-gzd-checkbox-placeholder,
.ghm-kasse-seite .wc-block-checkout__terms { color: var(--wp--preset--color--tinte-2); font-size: .875rem; line-height: 1.5; }
.ghm-kasse-seite .wp-block-woocommerce-germanized-checkout-checkboxes a,
.ghm-kasse-seite .wc-block-checkout__terms a { color: var(--wp--preset--color--gold-tief); }

/* Abschluss-Zeile: Zurück und Bestellen */
.ghm-kasse-seite .wc-block-checkout__actions { padding: 0; margin-top: .5rem; }
.ghm-kasse-seite .wc-block-checkout__actions_row { align-items: center; gap: 1rem 1.5rem; }
.ghm-kasse-seite .wc-block-components-checkout-return-to-cart-button { color: var(--wp--preset--color--gold-tief); font-size: .95rem; font-weight: 500; }

/* Fehlerseite „Ihr Warenkorb hat sich während der Bestellung geändert“ (zwei Tabs): WooCommerce gibt ihr width: 100% plus Innenabstand,
   am Handy war sie dadurch breiter als der Bildschirm. */
.ghm-kasse-seite .wc-block-checkout-error { box-sizing: border-box; max-width: 100%; padding: clamp(1.5rem, 6vw, 3rem) 1rem; }

/* ---------- Kasse: Bestellübersicht ---------- */

/* Seitenleiste: Bestellübersicht, direkt darunter Gesamtsumme mit Bestell-Knopf (Germanized setzt ihn dorthin und lässt ihn beim Scrollen
   mitlaufen, top unter dem festen Kopf), Hinweise am Ende. Vorher standen die Hinweise zwischen Übersicht und Summe (Kilian 2026-12-03: „zerrissen“). */
.ghm-kasse-seite .wc-block-checkout__sidebar { display: flex; flex-direction: column; gap: .75rem; padding-left: 0; }
.ghm-kasse-seite .wc-block-checkout__sidebar > .wp-block-woocommerce-checkout-order-summary-block {
	order: 1;
	padding: 0;
	border: 0;
	overflow: hidden;
}
.ghm-kasse-seite .wc-block-checkout__sidebar > .wc-gzd-checkout-submit { order: 3; padding: var(--ghm-kasse-pad); }
.ghm-kasse-seite .wc-block-checkout__sidebar > .ghm-vertrauen { order: 2; margin: 0; padding: .25rem .5rem 0; border-top: 0; }
/* Am Computer (Spalten nebeneinander): Summe direkt unter die Übersicht, Hinweise ans Ende. Am Handy bleibt die Summe am Ende,
   weil Germanized sie dort unten mitlaufen lässt und sie sonst die Hinweise überdecken würde. */
.ghm-kasse-seite .wc-block-checkout.is-large .wc-block-checkout__sidebar > .wc-gzd-checkout-submit { order: 2; top: 5.5rem; }
.ghm-kasse-seite .wc-block-checkout.is-large .wc-block-checkout__sidebar > .ghm-vertrauen { order: 3; padding-top: .5rem; }
/* Artikelzeile der Bestellübersicht als Raster: Bild | Text (schrumpft, bricht um) | Preise (so breit wie nötig).
   Vorher Flex mit fester Preis-Spalte (55 px): Der Grundpreis „40,00 € / kg“ ragte in Safari über den Rand (Kilian 2026-12-03). */
.ghm-kasse-seite .wc-block-components-order-summary .wc-block-components-order-summary-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) max-content; align-items: start; box-sizing: border-box; width: 100%; }
.ghm-kasse-seite .wc-block-components-order-summary-item__description { min-width: 0; overflow-wrap: break-word; padding-right: .75rem; }
.ghm-kasse-seite .wc-block-components-order-summary-item__total-price { margin-left: 0; text-align: right; }
.ghm-kasse-seite .wc-block-components-order-summary-item .wc-gzd-unit-price { font-size: .75rem; white-space: nowrap; }
/* „Sparen Sie … €“ machte die Preis-Spalte so breit, dass der Text daneben mitten im Wort brach; der Streichpreis steht ohnehin in der Zeile. */
.ghm-kasse-seite .wc-block-components-order-summary-item .wc-block-components-sale-badge { display: none; }
.ghm-kasse-seite .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-cart-items-block,
.ghm-kasse-seite .wc-block-checkout__sidebar .wc-block-components-order-summary { box-sizing: border-box; max-width: 100%; }
.ghm-kasse-seite .wc-gzd-checkout-submit .wp-block-woocommerce-checkout-order-summary-block { border: 0; padding: 0; margin: 0; }
.ghm-kasse-seite .wc-gzd-checkout-submit .wc-block-components-totals-wrapper { padding-inline: 0; border: 0; }
.ghm-kasse-seite .wc-gzd-checkout-submit .wc-block-checkout__actions { margin-top: 1rem; }
.ghm-kasse-seite .wc-block-components-checkout-order-summary__title-text,
.ghm-kasse-seite .wc-block-components-order-summary__button-text { font-family: var(--wp--preset--font-family--fraunces); font-size: var(--wp--preset--font-size--large); font-weight: 400; letter-spacing: 0; text-transform: none; }
.ghm-kasse-seite .wc-block-components-order-summary { background: transparent; }
.ghm-kasse-seite .wc-block-components-order-summary-item { padding-block: .9rem; }
.ghm-kasse-seite .wc-block-components-order-summary-item__image img { border-radius: 10px; }
.ghm-kasse-seite .wc-block-components-order-summary-item__quantity {
	background: var(--wp--preset--color--nacht);
	border: 0;
	box-shadow: none;
	color: var(--wp--preset--color--creme);
}

/* ---------- Handy ---------- */

/* Artikelzeilen sind dort Raster: Trennlinie an der Zeile statt an den Zellen */
.ghm-kasse-seite .wc-block-cart:is(.is-mobile, .is-small) .wc-block-cart-items .wc-block-cart-items__row + .wc-block-cart-items__row { border-top: 1px solid var(--ghm-kasse-linie); }
.ghm-kasse-seite .wc-block-cart:is(.is-mobile, .is-small) .wc-block-cart-items .wc-block-cart-items__row + .wc-block-cart-items__row td { border-top: 0; }
.ghm-kasse-seite .wc-block-cart:is(.is-mobile, .is-small) .wc-block-cart-items .wc-block-cart-items__row { padding: 1.1rem var(--ghm-kasse-pad); }
.ghm-kasse-seite .wc-block-cart:is(.is-mobile, .is-small) .wc-block-cart-items td { padding: 0; }

@media (max-width: 782px) {
	.ghm-kasse-seite .wc-block-cart-items { padding-inline: 1rem; }
	.ghm-kasse-seite .wp-block-woocommerce-cart-totals-block { margin-top: 1rem; }
	.ghm-kasse-seite .wc-block-components-sidebar { position: static; }
}
.ghm-kasse-seite .wc-block-cart:is(.is-mobile, .is-small) .wc-block-cart-items .wc-block-cart-items__row:last-child { border-bottom: 0; }

/* Feinschliff Kasse: Bestell-Knopf-Karte ohne Leerraum, Artikelliste in Sandton */
.ghm-kasse-seite .wc-gzd-checkout-submit .wc-block-checkout__actions.wp-block-woocommerce-checkout-actions-block { padding: 0; margin: 1rem 0 0; }
.ghm-kasse-seite .wc-gzd-checkout-submit .wc-block-checkout__actions_row { gap: .75rem; }
.ghm-kasse-seite .wc-gzd-checkout-submit .wc-block-components-checkout-place-order-button { margin: 0; }
.ghm-kasse-seite .wc-gzd-checkout-submit .wc-block-components-totals-wrapper:first-child { padding-top: 0; }
.ghm-kasse-seite .wc-block-components-checkout-order-summary__content,
.ghm-kasse-seite .wc-block-components-order-summary { background: transparent; }
.ghm-kasse-seite .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-cart-items-block { background: rgba(239, 227, 205, .5); border-color: var(--ghm-kasse-linie); }
.ghm-kasse-seite .wc-block-checkout__sidebar .wc-block-components-order-summary-item__total-price,
.ghm-kasse-seite .wc-block-checkout__sidebar .wc-block-components-order-summary-item .wc-block-components-product-name { color: var(--wp--preset--color--tinte); }

.ghm-kasse-seite .wc-block-components-order-summary.is-large,
.ghm-kasse-seite .wc-block-components-order-summary.is-small { background: transparent; }

/* Rechtliche Checkboxen (Germanized) in einer leisen Karte, damit sie nicht untergehen */
.ghm-kasse-seite .wp-block-woocommerce-germanized-checkout-checkboxes {
	margin-top: 1rem;
	padding: 1rem var(--ghm-kasse-pad);
	background: var(--wp--preset--color--karte);
	border-radius: var(--ghm-radius);
	box-shadow: var(--ghm-shadow);
}
.ghm-kasse-seite .wp-block-woocommerce-germanized-checkout-checkboxes:empty { display: none; }

/* Innenabstand der Bestellübersicht (Germanized setzt Titel und Zeilen am Handy auf 0, darum am Kartenrand) */
.ghm-kasse-seite .wc-block-checkout__sidebar > .wp-block-woocommerce-checkout-order-summary-block { padding: 1rem var(--ghm-kasse-pad) .5rem; }
.ghm-kasse-seite .wc-block-checkout__sidebar > .wp-block-woocommerce-checkout-order-summary-block .wp-block-woocommerce-checkout-order-summary-cart-items-block { border-radius: 12px; }
.ghm-kasse-seite .wc-block-components-checkout-step__heading { margin-bottom: .75rem; }
.ghm-kasse-seite .wc-block-components-checkout-step__container { margin: 0; }

/* Handy: Germanized blendet dort die Gesamtsumme und den Hinweis nach § 19 UStG neben dem Knopf aus. Beides bleibt sichtbar. */
.ghm-kasse-seite .wc-gzd-checkout .wc-block-checkout:is(.is-mobile, .is-medium, .is-small) .checkout-order-summary-block-fill-wrapper:not(.is-content-inline) { display: block; }
/* Den leeren Platzhalter der oberen Bestellübersicht („is-content-inline“, aria-hidden) aber NICHT zeigen:
   WooCommerce 11 klappt die Übersicht am Handy zu, sobald dieser Platzhalter ins Bild kommt, und scrollt dabei um die Höhe zurück.
   Germanized klappt sie sofort wieder auf → die Seite sprang beim Scrollen zum Kaufen-Knopf hoch zu „Hinweis zur Bestellung“ (Kilian 2026-12-03).
   Unsichtbar (display: none) meldet der Platzhalter nie „sichtbar“, also klappt nichts mehr um. */
.ghm-kasse-seite .wc-gzd-checkout-submit .checkout-order-summary-block-fill-wrapper.is-content-inline { display: none; }
.ghm-kasse-seite .wc-gzd-checkout-submit .checkout-order-summary-block-fill-wrapper .wc-block-components-checkout-order-summary__title { display: none; }
.ghm-kasse-seite .checkout-order-summary-block-fill-wrapper .wc-gzd-hide-total-wrapper,
.ghm-kasse-seite .checkout-order-summary-block-fill-wrapper .wc-block-components-checkout-order-summary__title { display: none; }
.ghm-kasse-seite .wc-gzd-checkout-submit .checkout-order-summary-block-fill-wrapper,
.ghm-kasse-seite .wc-gzd-checkout-submit .checkout-order-summary-block-fill-wrapper * { border: 0; box-shadow: none; background: none; }
.ghm-kasse-seite .wc-gzd-checkout-submit .checkout-order-summary-block-fill-wrapper .wc-block-components-title,
.ghm-kasse-seite .wc-gzd-checkout-submit .checkout-order-summary-block-fill-wrapper .wc-block-components-checkout-order-summary__title-text { display: none; }
.ghm-kasse-seite .wc-gzd-checkout-submit .checkout-order-summary-block-fill-wrapper { padding: 0; margin: 0; }
.ghm-kasse-seite .wc-gzd-checkout-submit .checkout-order-summary-block-fill-wrapper { margin-bottom: .75rem; }

/* ---------- Bestellbestätigung (/kasse/order-received/…): WooCommerce-Vorlage „order-confirmation“, nur Optik per CSS ---------- */

.woocommerce-order-received .wp-site-blocks > main {
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--60);
}
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-status {
	margin-bottom: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.2;
}
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-summary,
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-totals-wrapper,
.woocommerce-order-received :is(.wp-block-woocommerce-order-confirmation-shipping-address, .wp-block-woocommerce-order-confirmation-billing-address):not(:empty),
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-additional-information {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--karte);
	border-radius: var(--ghm-radius);
	box-shadow: var(--ghm-shadow);
}
.woocommerce-order-received .wc-block-order-confirmation-status-description { color: var(--wp--preset--color--tinte-2); }
.woocommerce-order-received form input[type="email"],
.woocommerce-order-received form input[type="text"] {
	padding: .75em 1em;
	border: 1px solid rgba(90, 75, 60, .55);
	border-radius: 10px;
	background: #fff;
	color: var(--wp--preset--color--tinte);
	font: inherit;
}
.woocommerce-order-received form input[type="email"]:focus,
.woocommerce-order-received form input[type="text"]:focus {
	border-color: var(--wp--preset--color--gold-tief);
	box-shadow: 0 0 0 1px var(--wp--preset--color--gold-tief);
	outline: 0;
}
.woocommerce-order-received form .button,
.woocommerce-order-received form button[type="submit"] {
	padding: .95em 1.6em;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--gold);
	color: #2a1d0e;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
.woocommerce-order-received form .button:hover,
.woocommerce-order-received form button[type="submit"]:hover { background: #f4d498; }
.ghm-kasse-seite .wc-block-components-product-name { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; }

/* Warenkorb „Das interessiert Sie vielleicht …“: Karten wie im Shop (abgerundete Bilder, links bündig, Knopf unten) */
.ghm-kasse-seite .wp-block-woocommerce-cart-cross-sells-block > div {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}
.ghm-kasse-seite .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product.cross-sells-product {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	box-sizing: border-box;
	width: auto;
	margin: 0;
	padding: var(--ghm-card-pad) var(--ghm-card-pad) calc(var(--ghm-card-pad) + 4px);
	background: var(--wp--preset--color--karte);
	border-radius: var(--ghm-radius);
	box-shadow: var(--ghm-shadow);
	text-align: left;
}
.ghm-kasse-seite .cross-sells-product > div:first-child { display: flex; flex-direction: column; gap: .45rem; }
.ghm-kasse-seite .cross-sells-product .wc-block-components-product-image { margin: 0 0 .4rem; border-radius: 12px; overflow: hidden; }
.ghm-kasse-seite .cross-sells-product .wc-block-components-product-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0;
	transition: transform .35s ease;
}
.ghm-kasse-seite .cross-sells-product:hover .wc-block-components-product-image img { transform: scale(1.03); }
.ghm-kasse-seite .cross-sells-product .wc-block-components-product-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.15;
	text-align: left;
}
.ghm-kasse-seite .cross-sells-product .wc-block-components-product-title a { color: var(--wp--preset--color--tinte); text-decoration: none; }
.ghm-kasse-seite .cross-sells-product .wc-block-components-product-rating-stars:not(:has(.wc-block-components-product-rating-stars__stars)) { display: none; }
.ghm-kasse-seite .cross-sells-product .wc-block-components-product-price {
	display: block;
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--wp--preset--color--gold-tief);
	white-space: nowrap;
	text-align: left;
}
.ghm-kasse-seite .cross-sells-product .wc-block-components-product-button { display: flex; flex-direction: column; align-items: stretch; gap: .3rem; margin: auto 0 0; text-align: center; }
.ghm-kasse-seite .cross-sells-product .wc-block-components-product-button .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: .7em .75em;
	font-size: .85rem;
	font-weight: 500;
	line-height: 1.1;
	white-space: nowrap;
	border-radius: 999px;
}
@media (max-width: 640px) {
	/* Am Handy als Wischleiste, damit keine einzelne Karte allein in der letzten Zeile steht */
	.ghm-kasse-seite .wp-block-woocommerce-cart-cross-sells-block > div {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 44%;
		gap: .625rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding: 4px 4px 12px;
		margin-inline: -4px;
		scrollbar-width: none;
	}
	.ghm-kasse-seite .wp-block-woocommerce-cart-cross-sells-block > div::-webkit-scrollbar { display: none; }
	.ghm-kasse-seite .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product { scroll-snap-align: start; }
	.ghm-kasse-seite .cross-sells-product .wc-block-components-product-title { font-size: 1rem; }
	.ghm-kasse-seite .cross-sells-product .wc-block-components-product-price { font-size: .95rem; }
	.ghm-kasse-seite .cross-sells-product .wc-block-components-product-button .wp-block-button__link { font-size: .8rem; padding-inline: .4em; }
}
