/**
 * AngeBae Variation Stock — pill badge + out-of-stock styling.
 * Sized to sit alongside the existing .variation-pill text without changing pill height.
 */

.variation-pill { position: relative; }

.variation-pill .angebae-vs-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	border-radius: 999px;
	font-size: 11px;
	line-height: 1.4;
	font-weight: 600;
	background: #eef5ee;
	color: #2d7a4a;
	vertical-align: middle;
	white-space: nowrap;
}

.variation-pill.angebae-vs-low .angebae-vs-badge {
	background: #fdecea;
	color: #b3261e;
}

.variation-pill.angebae-vs-oos {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
	text-decoration: line-through;
	background: #f5f5f5 !important;
	color: #777 !important;
}

.variation-pill.angebae-vs-oos .angebae-vs-badge.angebae-vs-out-badge {
	background: #f5f5f5;
	color: #b3261e;
	text-decoration: none;
}

/* Slight tightening when the active pill is also showing a badge so it doesn't push width too much */
.variation-pill.is-active .angebae-vs-badge {
	background: rgba(255,255,255,.18);
	color: #fff;
}

.variation-pill.is-active.angebae-vs-low .angebae-vs-badge {
	background: rgba(255,255,255,.25);
	color: #fff;
}

/* ========== Swatches ========== */
/* When a pill becomes a swatch, strip its rectangle styling so it reads as just a chip/circle. */
.variation-pill.angebae-vs-has-swatch {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 4px !important;
	min-width: 0 !important;
	width: auto !important;
	height: auto !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: inherit !important;
	border-radius: 999px !important;
}

.variation-pill .angebae-vs-swatch {
	display: inline-block;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border: 1px solid rgba(0,0,0,.15);
	flex: 0 0 auto;
	transition: box-shadow .15s ease, transform .15s ease;
}

.angebae-vs-swatch-group[data-shape="circle"] .angebae-vs-swatch {
	border-radius: 50%;
}
.angebae-vs-swatch-group[data-shape="square"] .angebae-vs-swatch {
	border-radius: 4px;
}

/* Hover lifts the chip a touch. */
.variation-pill.angebae-vs-has-swatch:hover .angebae-vs-swatch {
	transform: scale(1.06);
}

/* Hide the original text label unless explicitly enabled. */
.variation-pill.angebae-vs-has-swatch .angebae-vs-pill-label {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}

.variation-pill.angebae-vs-with-label .angebae-vs-pill-label {
	position: static !important;
	width: auto; height: auto;
	overflow: visible;
	clip: auto;
	white-space: normal;
	padding: 0 6px 0 0;
	font-size: 13px;
	line-height: 1;
}

/* Selected swatch — ring around the circle (like the reference). */
.variation-pill.angebae-vs-has-swatch.is-active .angebae-vs-swatch {
	box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px #111;
}
