.tgbt-wrap {
	--tg-accent: #1E2A5A;
	--tg-accent-hover: #14213D;
	--tg-accent-soft: #F3F5FA;
	--tg-card-bg: #FFFFFF;
	--tg-card-hover: #F8F9FC;
	--tg-card-border: #C5CADB;
	--tg-selected-card-bg: #F4F4F6;
	--tg-selected-border: #1E2A5A;
	--tg-accent-border: #FFD3DA;
	--tg-surface: #FFFFFF;
	--tg-surface-2: #F6F7FA;
	--tg-border: #DFE3EC;
	--tg-border-strong: #CBD2E0;
	--tg-text: #17213F;
	--tg-text-soft: #2C3658;
	--tg-muted: #8A92A6;
	--tg-success: #027A48;
	--tg-radius: 16px;
	--tg-radius-sm: 10px;
	--tg-radius-xs: 8px;
	--tg-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 22px rgba(16, 24, 40, 0.04);
	--tg-ring: 0 0 0 4px var(--tg-accent-soft);
	--tg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
	width: 100%;
	max-width: 100%;
	margin: 0 0 20px;
	clear: both;
	color: var(--tg-text);
	font-family: var(--tg-font);
}

.tgbt-wrap *,
.tgbt-wrap *::before,
.tgbt-wrap *::after {
	box-sizing: border-box;
}

.single-product form.cart.tgbt-cart-form {
	--tg-border: #DFE3EC;
	--tg-text: #17213F;
	--tg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
	margin-top: 14px;
	padding: 0 0 2px;
	font-family: var(--tg-font);
}

.tgbt-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 18px;
	align-items: stretch;
	margin-top: 0;
	padding-top: 0;
}

.tgbt-card-count-3 .tgbt-cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tgbt-tier-card {
	position: relative;
	display: grid;
	grid-template-rows: auto auto auto auto 1fr;
	justify-items: center;
	min-height: 336px;
	padding: 30px 18px 22px;
	color: var(--tg-text);
	font-family: var(--tg-font);
	text-align: center;
	cursor: pointer;
	background: var(--tg-card-bg);
	border: 1.5px solid var(--tg-card-border);
	border-radius: var(--tg-radius);
	box-shadow: none;
	transition: border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease, transform 0.08s ease;
	appearance: none;
}

.tgbt-tier-card:hover {
	background: var(--tg-card-hover);
	border-color: var(--tg-card-border);
}

.tgbt-tier-card:focus-visible {
	outline: none;
	box-shadow: var(--tg-ring);
}

.tgbt-tier-card.is-selected {
	background: var(--tg-selected-card-bg);
	border-color: var(--tg-selected-border);
	box-shadow: none;
}

.tgbt-tier-badge {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 5px 15px;
	color: var(--tg-accent);
	font-size: 11.5px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	background: #EEF1F7;
	border-radius: 999px;
	transform: translate(-50%, -50%);
}

.tgbt-tier-card.is-selected .tgbt-tier-badge {
	color: #FFFFFF;
	background: var(--tg-accent);
}

.tgbt-tier-radio {
	position: relative;
	display: inline-flex;
	width: 22px;
	height: 22px;
	margin-bottom: 10px;
	background: var(--tg-surface);
	border: 2px solid #D7DDE8;
	border-radius: 50%;
}

.tgbt-tier-radio::after {
	position: absolute;
	inset: 4px;
	content: "";
	background: var(--tg-selected-border);
	border-radius: 50%;
	opacity: 0;
	transform: scale(0.7);
	transition: opacity 0.14s ease, transform 0.14s ease;
}

.tgbt-tier-card.is-selected .tgbt-tier-radio {
	border-color: var(--tg-selected-border);
	box-shadow: 0 0 0 3px #FFFFFF;
}

.tgbt-tier-card.is-selected .tgbt-tier-radio::after {
	opacity: 1;
	transform: scale(1);
}

.tgbt-tier-label {
	display: block;
	margin-bottom: 6px;
	color: var(--tgbt-c-tier-label, #17213F);
	font-size: var(--tgbt-card-label-size, 15.5px);
	font-weight: 800;
	line-height: 1.2;
}

.tgbt-tier-total {
	display: block;
	margin-bottom: 4px;
	color: var(--tgbt-c-tier-price, #17213F);
	font-size: var(--tgbt-card-price-size, 22px);
	font-weight: 800;
	line-height: 1.15;
}

.tgbt-tier-total .amount,
.tgbt-tier-total bdi {
	color: inherit;
	font: inherit;
}

.tgbt-tier-savings {
	display: block;
	min-height: 18px;
	margin-bottom: 12px;
	color: var(--tg-success);
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
}

.tgbt-tier-image-wrap {
	display: flex;
	align-items: end;
	justify-content: center;
	width: 100%;
	min-height: 150px;
	margin-top: auto;
}

.tgbt-tier-image {
	display: block;
	width: auto;
	max-width: 170px;
	max-height: 146px;
	object-fit: contain;
}

.tgbt-tier-image-stack {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	min-height: 150px;
	padding: 0 6px;
}

.tgbt-tier-image-stack .tgbt-tier-image-copy {
	position: relative;
	flex: 0 0 auto;
	width: auto;
	object-fit: contain;
	filter: drop-shadow(0 6px 10px rgba(16, 24, 40, 0.08));
}

.tgbt-tier-image-stack-1 .tgbt-tier-image-copy {
	max-width: 108px;
	max-height: 144px;
}

.tgbt-tier-image-stack-2 .tgbt-tier-image-copy {
	max-width: 98px;
	max-height: 140px;
}

.tgbt-tier-image-stack-3 .tgbt-tier-image-copy,
.tgbt-tier-image-stack-4 .tgbt-tier-image-copy {
	max-width: 90px;
	max-height: 138px;
}

.tgbt-tier-image-stack .tgbt-tier-image-copy + .tgbt-tier-image-copy {
	margin-left: -34px;
}

.tgbt-tier-image-stack .tgbt-tier-image-copy:nth-child(2) {
	z-index: 2;
	transform: translateY(-2px);
}

.tgbt-tier-image-stack .tgbt-tier-image-copy:nth-child(3) {
	z-index: 3;
}

.tgbt-tier-image-stack .tgbt-tier-image-copy:nth-child(4) {
	z-index: 4;
	transform: translateY(3px);
}

.tgbt-tier-image-placeholder {
	position: relative;
	display: inline-flex;
	align-items: flex-end;
	justify-content: center;
	width: 84px;
	height: 118px;
	margin-top: 4px;
	border-radius: 22px 22px 16px 16px;
	background: linear-gradient(180deg, #FFFFFF 0%, var(--tg-surface-2) 100%);
	border: 1px solid var(--tg-border);
	box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
}

.tgbt-tier-image-placeholder::before {
	position: absolute;
	top: -14px;
	left: 50%;
	width: 48px;
	height: 18px;
	content: "";
	background: var(--tg-accent);
	border-radius: 10px 10px 4px 4px;
	transform: translateX(-50%);
}

.tgbt-tier-image-placeholder span {
	width: 58px;
	height: 32px;
	margin-bottom: 28px;
	background: var(--tg-accent);
	border-radius: 6px;
	opacity: 0.88;
}

.tgbt-wrap.tgbt-no-images .tgbt-cards {
	gap: 16px;
}

.tgbt-wrap.tgbt-no-images .tgbt-tier-card {
	grid-template-rows: auto auto auto auto auto;
	align-content: center;
	min-height: 210px;
	padding: 34px 22px 30px;
	row-gap: 4px;
}

.tgbt-wrap.tgbt-no-images .tgbt-tier-radio {
	margin-bottom: 12px;
}

.tgbt-wrap.tgbt-no-images .tgbt-tier-label {
	margin-bottom: 6px;
	font-size: 15px;
	letter-spacing: 0.02em;
}

.tgbt-wrap.tgbt-no-images .tgbt-tier-total {
	margin-bottom: 4px;
	font-size: 24px;
}

.tgbt-wrap.tgbt-no-images .tgbt-tier-savings {
	margin-top: 2px;
	margin-bottom: 0;
}

.single-product form.cart.tgbt-cart-form .quantity.tgbt-quantity {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	height: 58px;
	min-width: 176px;
	margin: 6px 0 0;
	padding: 0 18px;
	background: #FFFFFF;
	border: 1.5px solid var(--tg-border);
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
	order: 1;
}

.single-product form.cart.tgbt-cart-form .quantity.tgbt-quantity .qty {
	width: 66px !important;
	height: 54px;
	min-height: 54px;
	padding: 0 !important;
	color: var(--tg-text);
	font-family: var(--tg-font);
	font-size: 17px;
	font-weight: 850;
	text-align: center;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	appearance: textfield;
}

.single-product form.cart.tgbt-cart-form .quantity.tgbt-quantity .qty::-webkit-outer-spin-button,
.single-product form.cart.tgbt-cart-form .quantity.tgbt-quantity .qty::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

.single-product form.cart.tgbt-cart-form .single_add_to_cart_button,
.single-product form.cart.tgbt-cart-form button.single_add_to_cart_button {
	min-height: 58px;
	margin: 6px 0 0 !important;
	padding: 0 34px !important;
	color: #FFFFFF !important;
	font-family: var(--tg-font);
	font-size: 16px;
	font-weight: 850;
	line-height: 1;
	background: var(--tg-accent) !important;
	border: 1px solid var(--tg-accent) !important;
	border-radius: 999px !important;
	box-shadow: 0 12px 26px rgba(30, 42, 90, 0.18);
	order: 2;
}

.single-product form.cart.tgbt-cart-form .single_add_to_cart_button:hover,
.single-product form.cart.tgbt-cart-form button.single_add_to_cart_button:hover {
	background: var(--tg-accent-hover) !important;
	border-color: var(--tg-accent-hover) !important;
}

/* ------------------------------------------------------------------------ */
/* Variable products: full-width rows inside the flexed cart form.           */
/* The form becomes display:flex, and a <table> as a flex item shrink-wraps  */
/* to its content — which visually narrows the whole summary column. Forcing */
/* flex-basis:100% on the table and variation wrap restores the theme's      */
/* natural full-width layout.                                                */
/* ------------------------------------------------------------------------ */

.single-product form.cart.tgbt-cart-form table.variations {
	flex: 0 0 100%;
	width: 100%;
	margin: 0;
}

.single-product form.cart.tgbt-cart-form .single_variation_wrap {
	flex: 0 0 100%;
	width: 100%;
}

.single-product form.cart .tgbt-wrap {
	flex: 0 0 100%;
	min-width: 0;
}

.single-product form.cart.tgbt-cart-form .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
}

/* ------------------------------------------------------------------------ */
/* First-paint mirrors.                                                      */
/* frontend.js adds .tgbt-cart-form / .tgbt-quantity after DOM ready. These  */
/* :has() rules apply the exact same styling from the very first frame, so   */
/* the layout never visibly jumps on load. Kept as separate rules (not       */
/* comma-joined with the class selectors) so browsers without :has() drop    */
/* only these and fall back to the JS-class behavior.                        */
/* ------------------------------------------------------------------------ */

.single-product form.cart:has([data-tgbt]) {
	--tg-border: #DFE3EC;
	--tg-text: #17213F;
	--tg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
	margin-top: 14px;
	padding: 0 0 2px;
	font-family: var(--tg-font);
}

.single-product form.cart:has([data-tgbt]) table.variations {
	flex: 0 0 100%;
	width: 100%;
	margin: 0;
}

.single-product form.cart:has([data-tgbt]) .single_variation_wrap {
	flex: 0 0 100%;
	width: 100%;
}

.single-product form.cart:has([data-tgbt]) .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
}

.single-product form.cart:has([data-tgbt]) .quantity {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	height: 58px;
	min-width: 176px;
	margin: 6px 0 0;
	padding: 0 18px;
	background: #FFFFFF;
	border: 1.5px solid var(--tg-border);
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
	order: 1;
}

.single-product form.cart:has([data-tgbt]) .quantity .qty {
	width: 66px !important;
	height: 54px;
	min-height: 54px;
	padding: 0 !important;
	color: var(--tg-text);
	font-family: var(--tg-font);
	font-size: 17px;
	font-weight: 850;
	text-align: center;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	appearance: textfield;
}

.single-product form.cart:has([data-tgbt]) .quantity .qty::-webkit-outer-spin-button,
.single-product form.cart:has([data-tgbt]) .quantity .qty::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

.single-product form.cart:has([data-tgbt]) .single_add_to_cart_button,
.single-product form.cart:has([data-tgbt]) button.single_add_to_cart_button {
	min-height: 58px;
	margin: 6px 0 0 !important;
	padding: 0 34px !important;
	color: #FFFFFF !important;
	font-family: var(--tg-font);
	font-size: 16px;
	font-weight: 850;
	line-height: 1;
	background: var(--tg-accent) !important;
	border: 1px solid var(--tg-accent) !important;
	border-radius: 999px !important;
	box-shadow: 0 12px 26px rgba(30, 42, 90, 0.18);
	order: 2;
}

.single-product form.cart:has([data-tgbt]) .single_add_to_cart_button:hover,
.single-product form.cart:has([data-tgbt]) button.single_add_to_cart_button:hover {
	background: var(--tg-accent-hover) !important;
	border-color: var(--tg-accent-hover) !important;
}

@media (max-width: 640px) {
	.tgbt-card-count-3 .tgbt-cards,
	.tgbt-cards {
		grid-template-columns: 1fr;
	}

	.tgbt-tier-card {
		min-height: 290px;
	}

	.single-product form.cart.tgbt-cart-form .quantity.tgbt-quantity,
	.single-product form.cart.tgbt-cart-form .single_add_to_cart_button,
	.single-product form.cart.tgbt-cart-form button.single_add_to_cart_button {
		width: 100%;
	}

	.single-product form.cart:has([data-tgbt]) .quantity,
	.single-product form.cart:has([data-tgbt]) .single_add_to_cart_button,
	.single-product form.cart:has([data-tgbt]) button.single_add_to_cart_button {
		width: 100%;
	}
}

/* ------------------------------------------------------------------------ */
/* Adjustable dimensions — admin "Discount box & image size" section.        */
/* Only active when the wrap carries .tgbt-custom-dims (dim_enabled = yes),  */
/* so the stock layout is untouched until the merchant opts in. Sizes come   */
/* from inline --tgbt-* custom properties; fallbacks match the stock look.   */
/* ------------------------------------------------------------------------ */

.tgbt-wrap.tgbt-custom-dims .tgbt-cards {
	display: grid !important;
	/* Equal columns that fill the row: every box is the same width and the
	   columns line up perfectly on every wrap, so a lone box on the last row
	   sits flush-left under the first box (no drift), with one uniform gap. */
	grid-template-columns: repeat(var(--tgbt-cols, 3), minmax(0, 1fr)) !important;
	justify-content: stretch !important;
	justify-items: stretch !important;
	align-items: stretch !important;
	gap: 16px !important;
}

.tgbt-wrap.tgbt-custom-dims .tgbt-cards .tgbt-tier-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	justify-self: stretch !important;
	min-height: var(--tgbt-card-h, 210px) !important;
	padding: var(--tgbt-card-pad, 26px) !important;
	border-radius: var(--tgbt-card-radius, 16px) !important;
}

/* With "No images" there is nothing to fill the tall min-height, which left a
   big empty area under the price. Let those boxes hug their content instead —
   the Height slider becomes irrelevant and the Padding slider controls how
   compact they are. Grid stretch still keeps a row of boxes equal height. */
.tgbt-wrap.tgbt-custom-dims.tgbt-no-images .tgbt-cards .tgbt-tier-card {
	min-height: 0 !important;
}

/* Mobile: same equal-fill columns (default 2-up) + identical gap, so the grid
   stays aligned and evenly spaced exactly like the desktop view. */
@media (max-width: 640px) {
	.tgbt-wrap.tgbt-custom-dims .tgbt-cards {
		grid-template-columns: repeat(var(--tgbt-cols-mobile, 2), minmax(0, 1fr)) !important;
		gap: 16px !important;
	}
}

.tgbt-wrap.tgbt-custom-dims .tgbt-tier-image-wrap {
	min-height: auto !important;
	padding: var(--tgbt-img-pad, 6px) !important;
}

.tgbt-wrap.tgbt-custom-dims .tgbt-tier-image,
.tgbt-wrap.tgbt-custom-dims .tgbt-tier-image-stack .tgbt-tier-image-copy {
	max-width: var(--tgbt-img-w, 150px) !important;
	max-height: var(--tgbt-img-h, 130px) !important;
}

/* ------------------------------------------------------------------------ */
/* Theme compatibility.                                                      */
/* Some themes/page builders (e.g. Blocksy + Elementor) lay out the          */
/* .woocommerce-variation-add-to-cart area as a flex/grid row. Without this, */
/* the discount cards get squeezed into the same row as the quantity + Add   */
/* to cart button. These rules force the cards onto their own full-width row  */
/* at the top of that area, whatever layout the theme uses.                  */
/* ------------------------------------------------------------------------ */

.tgbt-wrap[data-tgbt] {
	flex: 1 1 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	order: -1 !important;          /* flex: push above qty / button */
	grid-column: 1 / -1 !important; /* grid: span the full width    */
}

/* Let a flexed add-to-cart row wrap so the cards can sit on their own line. */
form.cart .woocommerce-variation-add-to-cart,
form.cart .single_variation_wrap {
	flex-wrap: wrap !important;
}

/* Keep the quantity control and the Add to cart button together on one row
   (the row below the cards) — the flex-wrap that lets the cards take their own
   line must not also drop the button onto a separate line. The button grows to
   fill the rest of the row so it always sits beside the quantity. */
form.cart .woocommerce-variation-add-to-cart > .quantity,
form.cart .woocommerce-variation-add-to-cart > .e-atc-qty-button-holder {
	flex: 0 0 auto !important;
}

form.cart .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
form.cart .woocommerce-variation-add-to-cart > button.single_add_to_cart_button {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	white-space: nowrap;
}

/* ------------------------------------------------------------------------ */
/* Per-variation groups (product-mode variable products).                    */
/* Each variation renders its own labelled tier-box group so the shopper     */
/* sees pricing for every strength up front. Groups stack vertically with    */
/* breathing room and a clear heading.                                       */
/* ------------------------------------------------------------------------ */

.tgbt-variation-groups {
	display: flex !important;
	flex-direction: column !important;
	gap: 22px !important;
	width: 100% !important;
	flex: 1 1 100% !important;
	grid-column: 1 / -1 !important;
	order: -1 !important;
	margin: 0 0 18px !important;
}

.tgbt-variation-group {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	width: 100% !important;
	transition: opacity 0.2s ease;
}

.tgbt-variation-group-heading {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 16px !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	color: var(--tgbt-c-tier-label, #17213F) !important;
	letter-spacing: 0.01em;
}

/* When a variation is selected, only its group renders — every other group
   is fully hidden so the shopper sees exactly one set of boxes at a time. */
.tgbt-variation-group.tgbt-variation-hidden {
	display: none !important;
}

.tgbt-variation-group.tgbt-variation-active {
	opacity: 1;
}

/* Per-variation wraps sit inside .tgbt-variation-group, so undo the outer
   full-width push (that lives on the group instead) and let the wrap render
   at its natural block width inside the group. */
.tgbt-variation-group .tgbt-wrap.tgbt-wrap-per-variation {
	order: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

@media (max-width: 640px) {
	.tgbt-variation-groups {
		gap: 18px !important;
	}
	.tgbt-variation-group-heading {
		font-size: 15px !important;
	}
}

/* ------------------------------------------------------------------ */
/*  Bundle layout — [tgbt_tiers_bundle]                                */
/*  Dark, stacked "Bundle & Save" list. Uses the same [data-tgbt] +    */
/*  [data-tgbt-card] wiring as the card grid so the frontend JS already*/
/*  drives selection, price sync, and add-to-cart qty.                 */
/* ------------------------------------------------------------------ */

.tgbt-bundle-wrap {
	--tgb-bg: #050B14;
	--tgb-row-bg: #0F1B2E;
	--tgb-row-bg-selected: #152944;
	--tgb-accent: #3B7DFF;
	--tgb-accent-soft: rgba(59, 125, 255, 0.08);
	--tgb-accent-hover: rgba(59, 125, 255, 0.35);
	--tgb-accent-focus: rgba(59, 125, 255, 0.25);
	--tgb-accent-glow: rgba(59, 125, 255, 0.14);
	--tgb-accent-halo: rgba(59, 125, 255, 0.6);
	--tgb-text: #FFFFFF;
	--tgb-text-muted: #8092B1;
	--tgb-border: rgba(255, 255, 255, 0.06);
	--tgb-strike: rgba(255, 255, 255, 0.4);
	background: var(--tgb-bg);
	border-radius: 18px;
	padding: 26px 22px 22px;
	color: var(--tgb-text);
	max-width: 720px;
	margin: 0 auto;
	box-shadow: inset 0 0 0 1px var(--tgb-accent-glow);
	font-family: inherit;
}

.tgbt-bundle-header {
	text-align: center;
	padding: 0 0 20px;
	line-height: 1.35;
}

.tgbt-bundle-title {
	font-size: 20px;
	letter-spacing: 0.16em;
	font-weight: 800;
	color: var(--tgb-text);
	text-transform: uppercase;
}

.tgbt-bundle-subtitle {
	margin-top: 6px;
	font-size: 12.5px;
	letter-spacing: 0.16em;
	font-weight: 700;
	color: var(--tgb-accent);
	text-transform: uppercase;
}

.tgbt-bundle-list {
	display: grid;
	gap: 12px;
}

.tgbt-bundle-row {
	position: relative;
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	background: var(--tgb-row-bg);
	border: 1px solid var(--tgb-border);
	border-radius: 12px;
	color: var(--tgb-text);
	cursor: pointer;
	overflow: hidden;
	text-align: left;
	font-family: inherit;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	appearance: none;
	-webkit-appearance: none;
}

.tgbt-bundle-row:hover {
	border-color: var(--tgb-accent-hover);
}

.tgbt-bundle-row:focus-visible {
	outline: none;
	border-color: var(--tgb-accent);
	box-shadow: 0 0 0 3px var(--tgb-accent-focus);
}

.tgbt-bundle-row.is-selected {
	background: var(--tgb-row-bg-selected);
	border-color: var(--tgb-accent);
	box-shadow: 0 0 0 1px var(--tgb-accent), 0 0 22px -6px var(--tgb-accent-halo);
}

/* Radio circle */
.tgbt-bundle-radio {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.28);
	background: transparent;
	display: inline-block;
	flex-shrink: 0;
	position: relative;
	transition: border-color 0.18s ease, background 0.18s ease;
}
.tgbt-bundle-row.is-selected .tgbt-bundle-radio {
	background: var(--tgb-accent);
	border-color: var(--tgb-accent);
}
.tgbt-bundle-row.is-selected .tgbt-bundle-radio::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 5px;
	border-left: 2.4px solid var(--tgb-bg);
	border-bottom: 2.4px solid var(--tgb-bg);
	transform: translate(-55%, -75%) rotate(-45deg);
	border-radius: 1px;
}

/* Qty box (number + unit) */
.tgbt-bundle-qtybox {
	display: grid;
	place-items: center;
	padding: 6px 12px;
	min-width: 56px;
	border-radius: 10px;
	border: 1.5px solid var(--tgb-accent-hover);
	background: var(--tgb-accent-soft);
	line-height: 1;
	text-align: center;
}
.tgbt-bundle-qty-num {
	font-size: 22px;
	font-weight: 800;
	color: var(--tgb-accent);
	letter-spacing: 0.02em;
	line-height: 1;
}
.tgbt-bundle-qty-unit {
	font-size: 9.5px;
	letter-spacing: 0.18em;
	font-weight: 700;
	color: var(--tgb-accent);
	margin-top: 4px;
	line-height: 1;
}

/* Label + subtext */
.tgbt-bundle-info {
	display: grid;
	gap: 3px;
	min-width: 0;
}
.tgbt-bundle-label {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--tgb-text);
	text-transform: uppercase;
}
.tgbt-bundle-sub {
	color: var(--tgb-text-muted);
	font-size: 13px;
	letter-spacing: 0.02em;
}
.tgbt-bundle-sub .amount,
.tgbt-bundle-sub .woocommerce-Price-currencySymbol {
	color: inherit;
	font-weight: 600;
}

/* Prices on the right */
.tgbt-bundle-prices {
	display: grid;
	justify-items: end;
	row-gap: 4px;
	text-align: right;
}
.tgbt-bundle-total {
	font-size: 26px;
	font-weight: 800;
	color: var(--tgb-accent);
	letter-spacing: 0.01em;
	line-height: 1.05;
}
.tgbt-bundle-total .amount,
.tgbt-bundle-total .woocommerce-Price-currencySymbol {
	color: inherit;
	font-weight: inherit;
}
.tgbt-bundle-strike {
	text-decoration: line-through;
	color: var(--tgb-strike, rgba(240, 245, 238, 0.4));
	font-size: 15px;
	font-weight: 600;
}
.tgbt-bundle-strike .amount,
.tgbt-bundle-strike .woocommerce-Price-currencySymbol {
	color: inherit;
	font-weight: inherit;
}

/* Corner POPULAR ribbon on the default tier */
.tgbt-bundle-row.has-popular {
	padding-left: 60px;
}
.tgbt-bundle-ribbon {
	position: absolute;
	top: 0;
	left: 0;
	width: 130px;
	height: 130px;
	overflow: hidden;
	pointer-events: none;
}
.tgbt-bundle-ribbon-inner {
	position: absolute;
	top: 22px;
	left: -34px;
	width: 150px;
	padding: 6px 0;
	background: var(--tgb-accent);
	color: var(--tgb-bg);
	font-weight: 800;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-align: center;
	transform: rotate(-45deg);
}

/* Compact layout on narrow screens */
@media (max-width: 560px) {
	.tgbt-bundle-wrap {
		padding: 20px 14px 16px;
	}
	.tgbt-bundle-row {
		grid-template-columns: auto auto 1fr;
		row-gap: 8px;
		column-gap: 10px;
		padding: 12px 14px;
	}
	.tgbt-bundle-row.has-popular {
		padding-left: 52px;
	}
	.tgbt-bundle-prices {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: baseline;
		display: flex;
		justify-content: flex-end;
		gap: 10px;
	}
	.tgbt-bundle-total {
		font-size: 22px;
	}
	.tgbt-bundle-strike {
		font-size: 13px;
	}
	.tgbt-bundle-label {
		font-size: 16px;
	}
	.tgbt-bundle-sub {
		font-size: 12px;
	}
}
