/**
 * BS Mature Content — the "Mature" pill.
 *
 * Cards: a static child of the shared .bs-badge-stack (bs-badge-stack.css owns its position, top
 * left of the image), order 30, below Founding Seller (10) and Handmade Pledge (20). Same height,
 * border, and shadow as the pledge card badge; a pill rather than a circle because it carries text.
 * Single product page: an inline pill after the title.
 */

:root {
	--bs-mature-bg: #111111;
	--bs-mature-fg: #ffffff;
	--bs-mature-border: rgba(255, 255, 255, 0.85);
}

.bs-mature-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 0 10px;
	background: var(--bs-mature-bg);
	color: var(--bs-mature-fg);
	border: 1px solid var(--bs-mature-border);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: none;
	white-space: nowrap;
}

/* Card, inside the shared stack. */
.bs-badge-stack > .bs-mature-badge--card {
	position: static;
	order: 30;
	height: 32px;
	margin: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Fallback when the stack helper is absent: the badge script appends it to the image directly. */
.wd-product-thumb > .bs-mature-badge--card,
.product-image-link > .bs-mature-badge--card {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 10;
	height: 32px;
}

/* Storefront search grid: the image link holds the stack. */
.bs-store-product__img-link {
	position: relative;
}

/* Single product page. */
.bs-mature-badge-wrap--single {
	display: block;
	margin: 4px 0 12px;
}

.bs-mature-badge--product {
	height: 26px;
}

@media (max-width: 575px) {
	.bs-badge-stack > .bs-mature-badge--card,
	.wd-product-thumb > .bs-mature-badge--card,
	.product-image-link > .bs-mature-badge--card {
		height: 26px;
		padding: 0 8px;
		font-size: 11px;
	}
}
