/**
 * Open bar – wine package: pill toggle + product card.
 * The product card reuses the .gw-ob-pg__* classes from openbar-product-grid.css.
 * Only block-specific styles live here (toggle pill, gold price subline).
 */

.gw-ob-wine {
	--ob-wine-gold: #c9a96e;
	--ob-wine-gold-deep: #a8844a;
	--ob-wine-pill-bg: #332e29;
	--ob-wine-sans: var(--wp--preset--font-family--dm-sans, "DM Sans", sans-serif);
	--ob-wine-serif: var(--wp--preset--font-family--cormorant-garamond, "Cormorant Garamond", serif);
	box-sizing: border-box;
}

.gw-ob-wine *,
.gw-ob-wine *::before,
.gw-ob-wine *::after {
	box-sizing: border-box;
}

.gw-ob-wine__empty {
	color: #fff;
	text-align: center;
}

/* ---------- Toggle pill ---------- */

.gw-ob-wine__toggle-wrap {
	display: flex;
	justify-content: center;
}

.gw-ob-wine__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	padding: 20px 30px;
	background: var(--ob-wine-pill-bg);
	border: 1px solid var(--ob-wine-gold);
	border-radius: 999px;
	cursor: pointer;
	overflow: hidden;
}

.gw-ob-wine__toggle-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gw-ob-wine__toggle-check {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 3px;
	border: 1px solid var(--ob-wine-gold);
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease;
	position: relative;
}

.gw-ob-wine__toggle-check::after {
	content: "";
	width: 10px;
	height: 6px;
	border-left: 2px solid #0d0d0d;
	border-bottom: 2px solid #0d0d0d;
	transform: rotate(-45deg) translate(1px, -1px);
	opacity: 0;
}

.gw-ob-wine__toggle-input:checked + .gw-ob-wine__toggle-check {
	background: var(--ob-wine-gold);
}

.gw-ob-wine__toggle-input:checked + .gw-ob-wine__toggle-check::after {
	opacity: 1;
}

.gw-ob-wine__toggle-input:focus-visible + .gw-ob-wine__toggle-check {
	box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.45);
}

.gw-ob-wine__toggle-text {
	font-family: var(--ob-wine-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 3.9px;
	text-transform: none;
	color: var(--ob-wine-gold);
	line-height: 1.2;
	white-space: nowrap;
}

/* ---------- Card wrapper (single product card centered) ---------- */

.gw-ob-wine__panel {
	margin-top: 30px;
}

.gw-ob-wine__grid {
	display: flex;
	justify-content: center;
}

.gw-ob-wine__col.gw-ob-pg__col {
	width: 100%;
	max-width: 380px;
}

/* ---------- Subline override: price in gold (Cormorant Bold Italic) ---------- */

.gw-ob-wine__col .gw-ob-pg__product-sub,
.gw-ob-wine__col .gw-ob-pg__product-sub .amount,
.gw-ob-wine__col .gw-ob-pg__product-sub bdi,
.gw-ob-wine__col .gw-ob-pg__product-sub .gw-ob-wine__pp-suffix {
	font-family: var(--ob-wine-serif);
	font-size: 16px;
	font-style: italic;
	font-weight: 700;
	color: var(--ob-wine-gold-deep);
	line-height: 1.2;
}

.gw-ob-wine__col .gw-ob-pg__product-sub {
	margin: 0;
	display: inline-flex;
	gap: 4px;
	align-items: baseline;
	justify-content: center;
}

.gw-ob-wine__pp-suffix {
	margin-left: 0;
}
