/*
 * Warenkorb-Rabatte: Kasten „Ihre Vorteile“ (Warenkorb, Kasse, Mini-Warenkorb), Hinweise auf der Produktseite und
 * die Look-Seite. Farben, Radien und Schriftgrößen aus theme.json des Themes „sansibar“.
 */

/* Kasten „Ihre Vorteile“ */
.sb-rabatte {
	margin: 0 0 var(--wp--preset--spacing--30, 1.5rem);
	padding: 1rem 1.25rem;
	border: 1px solid var(--wp--preset--color--linie, #5e6064);
	border-radius: var(--wp--custom--radius--karte, 4px);
	background: var(--wp--preset--color--anthrazit-hell, #42454a);
	color: var(--wp--preset--color--text, #f2f0eb);
	font-size: var(--wp--preset--font-size--klein, 1rem);
	line-height: 1.45;
}

.sb-rabatte p {
	margin: 0;
}

.sb-rabatte a {
	color: var(--wp--preset--color--gold-text, #d8bd86);
}

.sb-rabatte__kopf {
	margin-bottom: 0.75rem !important;
	color: var(--wp--preset--color--gold-text, #d8bd86);
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sb-rabatte__block + .sb-rabatte__block,
.sb-rabatte__block + .sb-rabatte__ersparnis {
	margin-top: 0.75rem !important;
	padding-top: 0.75rem;
	border-top: 1px solid var(--wp--preset--color--linie, #5e6064);
}

.sb-rabatte__titel {
	font-weight: 700;
}

.sb-rabatte__zusatz {
	font-weight: 400;
	color: var(--wp--preset--color--text-gedaempft, #ece9e3);
	opacity: 0.8;
}

/* Hinweis der Regel beim Mengen-/Kistenrabatt (0.45.0) */
.sb-rabatte__hinweis {
	margin-bottom: 0.15rem !important;
	color: var(--wp--preset--color--text-gedaempft, #ece9e3);
	font-size: 0.9em;
	opacity: 0.85;
}

.sb-rabatte__balken {
	position: relative;
	height: 6px;
	margin: 0.6rem 6px 0.5rem; /* Platz für die Stufen-Punkte am Rand */
	border-radius: 3px;
	background: var(--wp--preset--color--flaeche, #4a4d52);
}

.sb-rabatte__fuellung {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: 3px;
	background: var(--wp--preset--color--gold, #cdb07a);
	transition: width 0.3s ease;
}

.sb-rabatte__marke {
	position: absolute;
	top: 50%;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	border: 2px solid var(--wp--preset--color--linie, #5e6064);
	border-radius: 50%;
	background: var(--wp--preset--color--anthrazit-hell, #42454a);
}

.sb-rabatte__marke.is-erreicht {
	border-color: var(--wp--preset--color--gold, #cdb07a);
	background: var(--wp--preset--color--gold, #cdb07a);
}

.sb-rabatte__liste {
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

.sb-rabatte__liste li,
.sb-rabatte__ziel.is-erreicht {
	position: relative;
	padding-left: 1.3em;
}

.sb-rabatte__liste li::before,
.sb-rabatte__ziel.is-erreicht::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--gold-text, #d8bd86);
	font-weight: 700;
}

.sb-rabatte__liste li.is-vergriffen {
	opacity: 0.7;
}

.sb-rabatte__liste li.is-vergriffen::before {
	content: "–";
	color: inherit;
}

.sb-rabatte__ersparnis strong,
.sb-rabatte__ziel strong {
	color: var(--wp--preset--color--gold-text, #d8bd86);
}

.sb-rabatte--kurz {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
}

/* Produktseite */
.sb-hinweise {
	margin: 1rem 0;
}

.sb-hinweis {
	margin: 0.25rem 0;
	padding-left: 0.75rem;
	border-left: 2px solid var(--wp--preset--color--gold, #cdb07a);
	font-size: var(--wp--preset--font-size--klein, 1rem);
}

.sb-hinweis a {
	color: var(--wp--preset--color--gold-text, #d8bd86);
}

/* Look-Seite */
.sb-look-seite .sb-look {
	padding: var(--wp--preset--spacing--40, 2.5rem) var(--wp--preset--spacing--20, 1rem);
}

.sb-look .sb__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.sb-look__kopf {
	display: grid;
	gap: var(--wp--preset--spacing--30, 1.5rem);
	align-items: center;
}

@media (min-width: 900px) {
	.sb-look__kopf {
		grid-template-columns: 3fr 2fr;
	}
}

.sb-look__foto {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--karte, 4px);
}

.sb-look__preis {
	font-size: var(--wp--preset--font-size--gross, 1.25rem);
}

.sb-look__preis strong {
	color: var(--wp--preset--color--gold-text, #d8bd86);
}

.sb-look__teile {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--wp--preset--spacing--30, 1.5rem);
	margin-top: var(--wp--preset--spacing--40, 2.5rem) !important;
}

.sb-look__teil {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem;
	border: 1px solid var(--wp--preset--color--linie, #5e6064);
	border-radius: var(--wp--custom--radius--karte, 4px);
	background: var(--wp--preset--color--anthrazit-hell, #42454a);
}

.sb-look__teilbild img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	background: var(--wp--preset--color--weiss, #fff);
	border-radius: var(--wp--custom--radius--karte, 4px);
}

.sb-look__teilname {
	margin: 0;
	font-weight: 700;
}

.sb-look__teilpreis {
	margin: 0.25rem 0 0;
}

.sb-look__teilpreis strong {
	color: var(--wp--preset--color--gold-text, #d8bd86);
}

.sb-look__wahl {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-top: 0.5rem;
	font-size: var(--wp--preset--font-size--klein, 1rem);
}

.sb-look__wahl[hidden] {
	display: none;
}

.sb-look__wahl select {
	padding: 0.5rem;
	border: 1px solid var(--wp--preset--color--linie, #5e6064);
	border-radius: var(--wp--custom--radius--feld, 4px);
	background: var(--wp--preset--color--tinte, #2f3135);
	color: var(--wp--preset--color--text, #f2f0eb);
	font: inherit;
}

.sb-look__aktion {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.sb-look__knopf[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.sb-look__meldung {
	margin: 0;
}
