/* JBS Vorbestellung – Produktseite, Warenkorb, Checkout */
/* Die Box steht nach dem Formular (woocommerce_after_add_to_cart_form) – ein normaler Block, kein Flex-Kind. */
.jbs-preorder {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 1.25em 0 0;
	padding: 1em 1.1em;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.03);
	clear: both;
}
.jbs-preorder__head { font-weight: 600; margin: 0 0 0.35em; }
.jbs-preorder__text { margin: 0 0 0.8em; }
/* Wunschtermin: Label + natives Datumsfeld, volle Breite, Rand wie die Box. */
.jbs-preorder__wish-row { margin: 0 0 0.8em; }
.jbs-preorder__wish-label { display: block; margin: 0 0 0.3em; font-weight: 600; }
.jbs-preorder__wish-hint { font-weight: 400; opacity: 0.7; margin-left: 0.3em; }
.jbs-preorder input.jbs-preorder__wish,
.woocommerce .jbs-preorder input.jbs-preorder__wish {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 9px 12px;
	font: inherit;
	font-size: 16px;
	line-height: 24px;
	color: inherit;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 6px;
	box-shadow: none;
	min-height: 44px;
}
.jbs-preorder input.jbs-preorder__wish:focus { outline: 2px solid var(--e-global-color-secondary, #3e9288); outline-offset: 1px; border-color: transparent; }
.jbs-preorder input.jbs-preorder__wish:invalid { border-color: #d63638; }
/* Button im Shop-Stil des Warenkorb-Buttons. Elementors Regel gilt nur innerhalb von form.cart (dort stand die Box bis
   v0.2.1), deshalb hier die Werte des JBS-Widgets nachgebildet – Farben über die Elementor-Kit-Variablen des Shops,
   Fallbacks nur für Umgebungen ohne Elementor (lokale Tests). */
.jbs-preorder button.jbs-preorder__button,
.jbs-preorder button.jbs-preorder__button:focus,
.woocommerce .jbs-preorder button.jbs-preorder__button,
.woocommerce .jbs-preorder button.jbs-preorder__button:focus {
	display: block;
	width: 100%;
	margin: 0.2em 0 0;
	padding: 11px 16px;
	font-family: "MuseoSans", Sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0;
	text-align: center;
	cursor: pointer;
	color: var(--e-global-color-e1f72aa, #ffffff);
	background-color: var(--e-global-color-secondary, #3e9288);
	border: 0;
	border-radius: 30px;
	box-shadow: none;
	text-decoration: none;
	transition: all 0.2s;
}
.jbs-preorder button.jbs-preorder__button:hover,
.woocommerce .jbs-preorder button.jbs-preorder__button:hover {
	color: var(--e-global-color-e1f72aa, #ffffff);
	background-color: var(--e-global-color-primary, #006757);
}
.jbs-preorder button.jbs-preorder__button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 767px) {
	.jbs-preorder button.jbs-preorder__button,
	.woocommerce .jbs-preorder button.jbs-preorder__button { font-size: 14px; }
}
.jbs-preorder__note { display: block; clear: both; margin: 0.9em 0 0; font-size: 0.85em; opacity: 0.8; }
/* Kopfzeile unter dem Produktnamen im Warenkorb/Checkout: eigene Zeile, darf umbrechen (v1.0 war ein
   nowrap-Badge neben dem Titel und wurde in schmalen Spalten abgeschnitten). */
.jbs-preorder-name { display: inline-block; vertical-align: top; max-width: 100%; }
.jbs-preorder-head {
	display: block;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0.35em 0 0;
	padding: 0.15em 0.6em;
	border-radius: 3px;
	background: #e3e3e3;
	color: #222;
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.4;
	white-space: normal;
}
.jbs-preorder-delivery { font-weight: 600; }
/* Lieferangabe unter der Kopfzeile, wenn Germanized für das Produkt keinen Lieferzeit-Slot ausgibt (keine Lieferzeit hinterlegt). */
.jbs-preorder-delivery-line { display: block; margin: 0.3em 0 0; font-size: 0.9em; }
