/* NeoLiefertheme — WooCommerce-Ansichten.
   Bewusst knapp: Die Karte ist der Hauptweg, diese Seiten sind Beiwerk —
   mit einer Ausnahme, der Produktseite, die als Landeseite aus dem
   eitorf.net-Marktplatz dient. */

.woocommerce-notices-wrapper { margin: 16px 0; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	margin: 0 0 14px;
	padding: 12px 16px;
	border-radius: var(--r-s);
	border: 1px solid var(--rand);
	background: var(--flaeche-gedaempft);
	color: var(--text);
	/* Umbrechen erlauben — der Gutschein-Hinweis ist länger als er aussieht. */
	white-space: normal;
	overflow-wrap: break-word;
}

/*
 * WooCommerce setzt in diese Hinweise ein absolut positioniertes Symbol über
 * ::before und hält mit rund 3,5em linkem Innenabstand Platz dafür frei. Unser
 * schlankeres Padding nimmt diesen Platz weg — dann liegt das Symbol auf dem
 * Text. Symbol raus statt Padding zurück, wir brauchen es nicht.
 */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	content: none;
	display: none;
}

.woocommerce-error { border-color: var(--warnung); color: var(--warnung); font-weight: 600; }

/* Gutschein-Aufklapper: eigene Zeile, nichts überlappt. */
.woocommerce-form-coupon-toggle .woocommerce-info {
	display: block;
}

.woocommerce-form-coupon-toggle .woocommerce-info a {
	white-space: nowrap;
}

/* ── Dunkler Modus: WooCommerce bringt eigene helle Flächen mit ─────────── */

/*
 * WooCommerce färbt Tabellen und Summenkästen fest hell ein. Im dunklen Modus
 * stand dann weiße Schrift auf hellgrauem Grund. Die Selektoren sind bewusst
 * eine Stufe spezifischer als die von WooCommerce, damit sie unabhängig von der
 * Ladereihenfolge greifen — ohne !important.
 */

body.woocommerce table.shop_table,
body.woocommerce-page table.shop_table {
	background: var(--flaeche);
	color: var(--text);
	border-color: var(--rand);
}

body.woocommerce table.shop_table th,
body.woocommerce table.shop_table td,
body.woocommerce-page table.shop_table th,
body.woocommerce-page table.shop_table td {
	background: transparent;
	color: var(--text);
	border-color: var(--rand);
}

body.woocommerce table.shop_table thead th,
body.woocommerce-page table.shop_table thead th {
	background: var(--flaeche-gedaempft);
	color: var(--text-leise);
}

body.woocommerce table.shop_table tbody tr:nth-child(even) td,
body.woocommerce-page table.shop_table tbody tr:nth-child(even) td {
	background: var(--flaeche-gedaempft);
}

body.woocommerce .cart_totals,
body.woocommerce .woocommerce-checkout-review-order,
body.woocommerce-page .cart_totals,
body.woocommerce-page .woocommerce-checkout-review-order {
	background: var(--flaeche);
	color: var(--text);
}

body.woocommerce #payment,
body.woocommerce-page #payment {
	background: transparent;
}

body.woocommerce #payment div.payment_box,
body.woocommerce-page #payment div.payment_box {
	background: var(--flaeche-gedaempft);
	color: var(--text);
}

/* Der Sprechblasen-Zipfel der Zahlartenbeschreibung hängt an einer festen Farbe. */
body.woocommerce #payment div.payment_box::before,
body.woocommerce-page #payment div.payment_box::before {
	border-bottom-color: var(--flaeche-gedaempft);
}

/* Platzhalterbild der Gerichte ohne Foto */
body.woocommerce table.shop_table img,
body.woocommerce-page table.shop_table img {
	background: var(--flaeche-gedaempft);
	border-radius: var(--r-s);
}

/* ── Bedienelemente im Warenkorb ───────────────────────────────────────── */

/*
 * Entfernen-Kreuz. WooCommerce liefert dafür nur einen winzigen Textlink —
 * auf dem Handy praktisch nicht zu treffen. Wird hier zur erkennbaren
 * Schaltfläche in Zielgröße.
 * Die Farbe braucht !important, weil WooCommerce sie selbst so setzt.
 */
body.woocommerce table.shop_table td.product-remove a.remove,
body.woocommerce-page table.shop_table td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	border: 1px solid var(--rand);
	border-radius: var(--r-s);
	background: var(--flaeche-gedaempft);
	color: var(--warnung) !important;
	font-size: 1.25rem;
	line-height: 1;
	text-decoration: none;
}

body.woocommerce table.shop_table td.product-remove a.remove:hover,
body.woocommerce-page table.shop_table td.product-remove a.remove:hover {
	background: var(--warnung);
	color: var(--flaeche) !important;
	border-color: var(--warnung);
}

/* Mengenfeld */
body.woocommerce .quantity input.qty,
body.woocommerce-page .quantity input.qty {
	width: 76px;
	min-height: 44px;
	padding: 0 6px;
	border: 1px solid var(--rand);
	border-radius: var(--r-s);
	background: var(--flaeche);
	color: var(--text);
	font: inherit;
	text-align: center;
}

/*
 * „Warenkorb aktualisieren" ist so lange gesperrt, bis eine Menge geändert
 * wurde. Ohne sichtbaren Unterschied wirkt der Knopf schlicht kaputt.
 */
body.woocommerce button.button:disabled,
body.woocommerce button.button[disabled],
body.woocommerce-page button.button:disabled,
body.woocommerce-page button.button[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Gutscheinfeld im Warenkorb */
body.woocommerce .coupon input.input-text,
body.woocommerce-page .coupon input.input-text {
	min-height: 44px;
	padding: 0 10px;
	border: 1px solid var(--rand);
	border-radius: var(--r-s);
	background: var(--flaeche);
	color: var(--text);
	font: inherit;
}

/* Aktionsleiste unter der Tabelle nicht zusammenquetschen */
body.woocommerce td.actions,
body.woocommerce-page td.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
}

/* ── Produktseite als Landeseite ───────────────────────────────────────── */

.single-product .neo-inhalt { padding-top: 24px; }

.neo-produkt-kontext {
	margin: 20px 0;
	padding: 16px;
	border: 1px solid var(--rand);
	border-radius: var(--r-m);
	background: var(--flaeche-gedaempft);
}

.neo-produkt-kontext p { margin: 0 0 6px; }
.neo-produkt-kontext__betrieb { font-weight: 700; }

.neo-produkt-kontext__karte {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
}

/* ── Warenkorb und Kasse ───────────────────────────────────────────────── */

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 12px 8px;
	border-bottom: 1px solid var(--rand);
	text-align: left;
}

.woocommerce form .form-row { margin-bottom: 14px; }

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid var(--rand);
	border-radius: var(--r-s);
	background: var(--flaeche-erhoben);
	color: var(--text);
	font: inherit;
}

.woocommerce #payment ul.payment_methods {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.woocommerce #payment ul.payment_methods li {
	padding: 10px 0;
	border-bottom: 1px solid var(--rand);
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce #payment #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--r-s);
	background: var(--akzent);
	color: var(--akzent-text);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
}

.woocommerce a.button.wc-backward {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--rand);
}

/* Die Kasse bleibt einspaltig — ein Bestellvorgang ist kein Layoutwettbewerb. */
@media (min-width: 900px) {
	.woocommerce-checkout .neo-container { max-width: 760px; }
}
