/* WooCommerce & Food Store: nur Einpassung ins Seitenlayout – Funktionen und Logik kommen aus den Plugins. */

.ist-shop .inhalt { padding-block: 40px 60px; }
.ist-shop .inhalt > p:first-of-type,
.ist-shop .inhalt > h2:first-of-type { text-align: center; font-family: var(--f-kopf); font-weight: 600; color: var(--gruen); font-size: var(--t-lead); line-height: 1.45; max-width: 900px; margin: 0 auto 28px; }

/* Formulare (Kasse, Konto) */
.ist-shop input[type="text"], .ist-shop input[type="email"], .ist-shop input[type="tel"], .ist-shop input[type="password"], .ist-shop input[type="number"], .ist-shop select, .ist-shop textarea {
	font: 400 16px/1.4 var(--f-text);
	color: #222;
	background: #fff;
	border: 1px solid #c9c6bd;
	border-radius: 4px;
	padding: 10px 12px;
	min-height: 46px;
	max-width: 100%;
}
.ist-shop textarea { min-height: 90px; }
.ist-shop input:focus, .ist-shop select:focus, .ist-shop textarea:focus { outline: 3px solid rgba(236,143,2,.45); outline-offset: 1px; border-color: var(--orange); }
.ist-shop label { color: #333; font-weight: 500; }

.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #place_order {
	font: 600 16px/1.2 var(--f-text);
	border-radius: 24px;
	padding: 13px 24px;
	min-height: 46px;
}
.inhalt .woocommerce h2, .inhalt .woocommerce h3 { font-family: var(--f-kopf); color: var(--gruen); }
.woocommerce table.shop_table { background: rgba(255,255,255,.8); }
.woocommerce-checkout .woocommerce, .woocommerce-cart .woocommerce, .woocommerce-account .woocommerce { background: rgba(255,255,255,.55); padding: clamp(16px, 3vw, 32px); }

/* Food-Store-Menü auf Papiergrund lesbar halten */
.ist-shop .wfs-food-item, .ist-shop .wfs-category-title { font-family: var(--f-text); }
.ist-shop .wfs-category-title, .ist-shop h3.wfs-category-title { font-family: var(--f-kopf); }

@media (max-width: 767px) {
	.ist-shop .inhalt { padding-block: 24px 40px; }
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
}

/* Food-Store-Produkt-Popup: Kopf und „In den Warenkorb“ bleiben sichtbar, nur der Inhalt scrollt.
   (Das Plugin begrenzt die Höhe nicht – auf kleinen Handys lag der Knopf sonst unter dem Bildschirmrand.) */
#wfsModal .wfsmodal-container { display: flex; flex-direction: column; max-height: calc(100dvh - 4rem); overflow: hidden; }
#wfsModal .wfsmodal-header, #wfsModal .wfsmodal-footer { flex: none; }
#wfsModal .wfsmodal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#wfsModal .wfsmodal-footer { background: #fff; box-shadow: 0 -6px 14px rgba(0,0,0,.08); }
@media (max-width: 575px) { #wfsModal .wfsmodal-container { max-height: calc(100dvh - 4rem); width: auto; } }

/* Beschreibungstexte im Bestellmenü lesbarer (Kontrast) */
.ist-shop .wfs-food-item-container p:not(.price), .ist-shop .wfs-category-short-desciption { color: #5a5a5a; }

/* WooCommerce-Standardfarben (Lila/Grau) durch Markenfarben ersetzen */
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #place_order {
	background: var(--orange); color: var(--auf-orange); border: 0;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce #place_order:hover {
	background: #d98200; color: var(--auf-orange);
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--gruen); color: #fff; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: #134d24; color: #fff; }
.woocommerce-checkout #payment { background: rgba(255,255,255,.8); border-radius: 8px; border: 1px solid rgba(0,0,0,.08); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid rgba(0,0,0,.08); }
.woocommerce-checkout #payment div.payment_box { background: #f5f1e6; color: #333; border-left: 3px solid var(--orange); border-radius: 4px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #f5f1e6; }
.woocommerce-checkout #payment ul.payment_methods li label { font-weight: 600; color: var(--text-dunkel); }
.woocommerce-info, .woocommerce-message { border-top-color: var(--gruen); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--gruen); }
.lb-rabatt-zeile th, .lb-rabatt-zeile td { color: var(--gruen); }
