/**
 * Multi Buy Discount — standard stacked tier cards.
 */

.bsp-sp__multi-buy {
	--bsp-mbd-border: #e5e5e5;
	--bsp-mbd-bg: #ffffff;
	--bsp-mbd-accent: #111111;
	--bsp-mbd-popular: #111111;
	--bsp-mbd-badge-bg: #111111;
	--bsp-mbd-badge-text: #ffffff;
	--bsp-mbd-gift-bg: #111111;
	--bsp-mbd-muted: #6b6b6b;
	--bsp-mbd-title: #111111;

	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin: 0 0 16px;
}

.bsp-sp__mbd-tier {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

/* Hide native radio completely — selection is shown via card border only. */
.bsp-sp__multi-buy .bsp-js-mbd-tier {
	position: absolute !important;
	left: -9999px !important;
	top: 0 !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	opacity: 0 !important;
	pointer-events: none;
	outline: none !important;
	box-shadow: none !important;
}

.bsp-sp__multi-buy .bsp-js-mbd-tier:focus,
.bsp-sp__multi-buy .bsp-js-mbd-tier:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

/* Keep keyboard focus visible on the card, not the hidden input. */
.bsp-sp__mbd-tier:focus-within .bsp-sp__mbd-tier-body {
	border-color: var(--bsp-mbd-accent);
	box-shadow: inset 0 0 0 1px var(--bsp-mbd-accent);
}

.bsp-sp__mbd-tier-body {
	display: block;
	border: 1px solid var(--bsp-mbd-border);
	border-radius: 0;
	background: var(--bsp-mbd-bg);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bsp-sp__mbd-tier.is-selected .bsp-sp__mbd-tier-body,
.bsp-sp__mbd-tier:has(.bsp-js-mbd-tier:checked) .bsp-sp__mbd-tier-body {
	border-color: var(--bsp-mbd-accent);
	box-shadow: inset 0 0 0 1px var(--bsp-mbd-accent);
}

.bsp-sp__mbd-popular {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 0;
	background: var(--bsp-mbd-popular);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bsp-sp__mbd-tier-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 14px;
}

.bsp-sp__mbd-tier.is-popular .bsp-sp__mbd-tier-main {
	padding-top: 28px;
}

.bsp-sp__mbd-left {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

/* Decorative radio circle removed — keep class for markup compat but hide it. */
.bsp-sp__mbd-radio {
	display: none !important;
}

.bsp-sp__mbd-label {
	color: var(--bsp-mbd-title);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

.bsp-sp__mbd-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 7px;
	border-radius: 0;
	background: var(--bsp-mbd-badge-bg);
	color: var(--bsp-mbd-badge-text);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bsp-sp__mbd-prices {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	flex-shrink: 0;
	text-align: right;
}

.bsp-sp__mbd-price {
	color: var(--bsp-mbd-title);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
}

.bsp-sp__mbd-price .woocommerce-Price-amount {
	font-size: inherit;
}

.bsp-sp__mbd-regular {
	color: var(--bsp-mbd-muted);
	font-size: 12px;
	line-height: 1.2;
	text-decoration: line-through;
}

.bsp-sp__mbd-regular .woocommerce-Price-amount {
	font-size: inherit;
}

.bsp-sp__mbd-gift {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 14px;
	background: var(--bsp-mbd-gift-bg);
	color: #ffffff;
}

.bsp-sp__mbd-gift-left {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bsp-sp__mbd-gift-left svg {
	width: 14px;
	height: 14px;
}

.bsp-sp__mbd-gift-value {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.bsp-sp__mbd-gift-value .woocommerce-Price-amount {
	font-size: inherit;
}

.bsp-sp__purchase--has-mbd .bsp-sp__qty-control {
	display: none;
}

.bsp-sp__purchase--has-mbd > .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}
