/* Hide WooCommerce's default dropdown UI + auto price/description box
   while keeping stock text, qty and Add to Cart intact. */
form.variations_form.bvc-active .variations { display: none !important; }
form.variations_form.bvc-active .woocommerce-variation-price,
form.variations_form.bvc-active .woocommerce-variation-description { display: none !important; }

.bvc-wrap {
	margin: 16px 0 20px;
	/* min-width:0 stops flex/grid parents (Elementor containers, theme
	   columns) from stretching this block to its content width, which
	   pushed the first card off-screen on some phones. */
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	align-self: stretch;
}

/* ===== Template 1: horizontal rows (scoped to .bvc-cards) ===== */
.bvc-cards { display: flex; flex-direction: column; gap: 12px; }

.bvc-cards .bvc-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1px solid #8aa992;
	border-radius: 10px;
	padding: 12px 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bvc-cards .bvc-card:hover { border-color: #0f9d76; }
.bvc-cards .bvc-card.bvc-active-card { border-color: #0f9d76; border-width: 2px; box-shadow: 0 0 0 1px #0f9d76; background: #f3fbf8; }
.bvc-cards .bvc-card.bvc-out-of-stock { opacity: .5; cursor: not-allowed; }

.bvc-chip { position: absolute; top: 8px; right: 10px; background: #0f766e; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 4px; }
.bvc-card-image { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #f5f5f5; }
.bvc-card-image img { width: 100%; height: 100%; object-fit: cover; }
.bvc-card-body { flex: 1 1 auto; min-width: 0; }
.bvc-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
.bvc-badge-green { background: #16a34a; color: #fff; }
.bvc-badge-lime { background: #d9f99d; color: #365314; }
.bvc-badge-red { background: #dc2626; color: #fff; }
.bvc-badge-gray { background: #e5e7eb; color: #374151; }
.bvc-title { font-weight: 700; font-size: 15px; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bvc-subtitle-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.bvc-subtitle { font-size: 13px; color: #6b7280; }
.bvc-save-tag { font-size: 11px; font-weight: 700; background: #dcfce7; color: #15803d; padding: 1px 7px; border-radius: 4px; }
.bvc-oos-label { margin-top: 4px; font-size: 12px; color: #dc2626; font-weight: 600; }
.bvc-card-price { flex: 0 0 auto; text-align: right; }
.bvc-price-current { display: block; font-size: 18px; font-weight: 700; color: #dc2626; }
.bvc-price-regular { display: block; font-size: 12px; color: #9ca3af; }

@media ( max-width: 480px ) { .bvc-title { white-space: normal; } }

/* ===== Template 2: left/right scrollable pack cards ===== */
.bvc-cards-vertical-outer {
	position: relative; /* card.offsetLeft is measured from the scroller */
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	padding-bottom: 4px;
	scrollbar-width: thin;
}
.bvc-cards-vertical-outer::-webkit-scrollbar { height: 6px; }
.bvc-cards-vertical-outer::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.bvc-cards-vertical {
	display: flex;
	justify-content: flex-start; /* never centre: centred overflow is unreachable on the left */
	gap: 10px;
	width: max-content;
	min-width: 100%;
	box-sizing: border-box;
	padding: 4px 2px 2px;
}

.bvc-cards-vertical .bvc-card {
	position: relative;
	flex: 0 0 150px;
	scroll-snap-align: start;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px 10px 10px;
	background: #fff;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bvc-cards-vertical .bvc-card:hover { border-color: #2563eb; }
.bvc-cards-vertical .bvc-card.bvc-active-card { border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; background: #f5f8ff; }
.bvc-cards-vertical .bvc-card.bvc-out-of-stock { opacity: .5; cursor: not-allowed; }

.bvc-radio { position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; box-sizing: border-box; }
.bvc-card.bvc-active-card .bvc-radio { border-color: #2563eb; background: #2563eb; box-shadow: inset 0 0 0 2px #fff; }

.bvc-vbadge { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 2px 7px; border-radius: 4px; }
.bvc-vcard-title { margin-top: 20px; font-size: 12px; font-weight: 700; color: #6b7280; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bvc-vcard-price { margin-top: 4px; }
.bvc-vprice-current { font-size: 16px; font-weight: 700; color: #111827; }
.bvc-vprice-regular { font-size: 12px; color: #9ca3af; margin-left: 4px; }
.bvc-vcard-subtitle { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.bvc-vcard-image { width: 84px; height: 84px; margin: 8px auto 6px; }
.bvc-vcard-image img { width: 100%; height: 100%; object-fit: contain; }
.bvc-vdiscount { background: #16a34a; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 0; border-radius: 6px; }
