/* Produktseite: Auswahlkacheln und Aufpreise */

/* Woo setzt Beschriftung und Auswahl als Tabellenzeile nebeneinander.
   Beides untereinander stellen, damit die Kacheln unter dem Label sitzen. */
.variations,
.variations tbody,
.variations tr,
.variations th.label,
.variations td.value {
	display: block;
	width: 100%;
	text-align: left;
}

.variations th.label {
	padding: 0 0 10px;
}

.variations td.value {
	padding: 0 0 18px;
}

.sv-swatches {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.sv-swatch {
	text-align: center;
	padding: 10px 16px;
	border: 1px solid #D9D0C0;
	background: #fff;
	color: #2A2420;
	cursor: pointer;
	font-family: 'Open Sans', sans-serif;
	line-height: 1.3;
}

.sv-swatch:hover {
	border-color: #2A2420;
}

.sv-swatch.is-active {
	background: #2A2420;
	border-color: #2A2420;
	color: #FCFAF6;
}

.sv-swatch[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
	text-decoration: line-through;
}

.sv-swatch-label {
	display: block;
	font-weight: 600;
	font-size: 13px;
}

.sv-swatch-price {
	display: block;
	font-weight: 400;
	font-size: 11.5px;
	margin-top: 2px;
}

/* Das Original-select bleibt bedienbar für Screenreader, ist aber unsichtbar. */
.sv-select-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* In der Zelle des ersetzten Dropdowns bleiben nur Kacheln und der
   Zurücksetzen-Link sichtbar. Theme und Plugin legen dort eigene Elemente für
   den Dropdown-Pfeil ab – teils mehrfach, weil WooCommerce die Auswahl bei
   jeder Änderung neu aufbaut. */
.sv-swatch-cell > *:not(.sv-swatches):not(.reset_variations) {
	display: none !important;
}

/* Pfeile hängen mal an der Beschriftung, mal an der Auswahl, mal an der Zeile.
   Deshalb die ganze Zeile abräumen – sichtbaren Inhalt trägt dort nur noch die
   Kachelleiste. */
.sv-swatch-row::before,
.sv-swatch-row::after,
.sv-swatch-row *::before,
.sv-swatch-row *::after {
	content: none !important;
	background-image: none !important;
}

/* Ausgenommen: die Kacheln selbst. */
.sv-swatch-row .sv-swatches *::before,
.sv-swatch-row .sv-swatches *::after {
	content: normal;
}
