/* Siegis Bestelloptionen – Produktseite (schlichter Listen-Stil).
   Anpassbar über CSS-Variablen, z. B. in Divi → Theme-Optionen → Eigenes CSS:
   .sbo-options { --sbo-accent: #c0392b; --sbo-select-width: 260px; } */

.sbo-options {
	--sbo-accent: #2271b1;
	--sbo-border: #333;
	--sbo-line: rgba(0, 0, 0, .12);
	--sbo-muted: #666;
	--sbo-label: #555;
	--sbo-select-width: 240px;
	margin: 0 0 1.25em;
	width: 100%;
	clear: both;
	font-size: 14px;
	line-height: 1.4;
}

.sbo-group {
	border: 0;
	margin: 0 0 1.1em;
	padding: 0;
	min-width: 0;
}

.sbo-legend {
	font-weight: 600;
	color: var(--sbo-label);
	margin: 0 0 .6em;
	padding: 0;
	font-size: 1em;
}

.sbo-description {
	margin: -.3em 0 .5em;
	color: var(--sbo-muted);
	font-size: .9em;
}

/* Dropdowns nebeneinander (Fleisch + Panier) */
.sbo-select-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0 16px;
}
.sbo-select-row .sbo-group {
	flex: 0 1 var(--sbo-select-width);
	min-width: 160px;
}

.sbo-select-wrap { position: relative; }
.sbo-select {
	width: 100%;
	height: 34px;
	padding: 0 2.2em 0 .6em;
	border: 1px solid var(--sbo-border);
	border-radius: 3px;
	background: #fff;
	font: inherit;
	color: inherit;
	line-height: 32px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}
.sbo-select-wrap::after {
	content: "";
	position: absolute;
	right: .8em;
	top: 50%;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
.sbo-select:focus-visible {
	outline: 2px solid var(--sbo-accent);
	outline-offset: 1px;
}

/* Häkchen als einfache Liste */
.sbo-checks {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.sbo-check {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 1px 0;
	cursor: pointer;
	font-weight: normal;
	color: var(--sbo-muted);
}
.sbo-check input {
	width: 13px;
	height: 13px;
	margin: 0 2px 0 0;
	flex: none;
	accent-color: var(--sbo-accent);
}
.sbo-check .sbo-price { margin-left: 6px; white-space: nowrap; }
.sbo-check:has(input:checked) { color: inherit; }

/* Ausverkauft und gesperrt */
.sbo-check.is-soldout {
	opacity: .5;
	cursor: not-allowed;
}
.sbo-check.is-soldout .sbo-name { text-decoration: line-through; }
.sbo-check.is-soldout .sbo-badge { text-decoration: none; margin-left: 6px; }
.sbo-check:has(input:disabled):not(.is-soldout) {
	opacity: .55;
	cursor: not-allowed;
}

/* Hinweise */
.sbo-hint {
	margin: .35em 0 0;
	font-size: .9em;
	color: var(--sbo-muted);
}
.sbo-hint:empty { display: none; }
.sbo-group.is-invalid .sbo-hint { color: #b3261e; }
.sbo-group.is-invalid .sbo-select { border-color: #b3261e; }

/* Summen */
.sbo-totals {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0 0;
	border: 0;
	font-size: 1em;
}
.sbo-totals th,
.sbo-totals td {
	padding: .9em .6em;
	border: 0;
	border-top: 1px solid var(--sbo-line);
	background: transparent;
	text-align: left;
	font-weight: 600;
}
.sbo-totals td { text-align: right; white-space: nowrap; }
.sbo-totals-extra th,
.sbo-totals-extra td { font-weight: 600; }

@media (max-width: 480px) {
	.sbo-select-row .sbo-group { flex: 1 1 100%; }
}
