/* Tank Bundles — product page offer cards. Scoped to .tb-* only. */

.tb-offers {
	--tb-ink: #3f2103;
	--tb-body: #2b1704;
	--tb-line: #e4dbcc;
	--tb-cream: #faf8f4;
	--tb-cream-2: #f4efe6;
	--tb-cta: #804201;
	--tb-cta-hover: rgb(92, 47, 1);
	--tb-leaf: #acd48c;
	--tb-radius: 14px;

	margin: 18px 0 6px;
	color: var(--tb-body);
	font-size: 0.95rem;
	line-height: 1.45;
}

/* Sits in the price slot: tight above, roomy below so it owns the gap the
   price used to occupy. */
.tb-offers--price {
	margin: 4px 0 22px;
}

.tb-offers__group + .tb-offers__group {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--tb-line);
}

.tb-offers__title {
	margin: 0 0 2px;
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
	color: var(--tb-ink);
}

.tb-offers__sub {
	margin: 0 0 12px;
	font-size: 0.875rem;
	color: #6b5a49;
}

/* ---------- "stock up and save" radio list ---------- */

.tb-stock__title {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 14px;
	color: var(--tb-ink);
	font-weight: 700;
	font-size: 1.125rem;
	letter-spacing: -0.01em;
}

.tb-stock__rule {
	flex: 1 1 auto;
	height: 2px;
	border-radius: 2px;
	background: #e3d9c8;
}

.tb-stock__heading {
	flex: 0 0 auto;
	text-align: center;
}

.tb-stock {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tb-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 15px 20px;
	background: var(--tb-cream);
	border: 2px solid var(--tb-line);
	border-radius: var(--tb-radius);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tb-row:hover {
	border-color: #c9bba4;
	background: #fff;
}

.tb-row.is-selected,
.tb-row:has(.tb-row__input:checked) {
	border-color: var(--tb-cta-hover);
	background: var(--tb-cream-2);
	box-shadow: 0 1px 3px rgba(63, 33, 3, 0.08);
}

.tb-row__input {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	margin: 0;
	border: 3px solid #d3c5ae;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tb-row__input:checked {
	border-color: var(--tb-cta-hover);
	background: var(--tb-cta-hover);
	box-shadow: inset 0 0 0 4px var(--tb-cream-2);
}

.tb-row__input:focus-visible {
	outline: 2px solid var(--tb-cta);
	outline-offset: 3px;
}

.tb-row__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.tb-row__label {
	color: var(--tb-ink);
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.2;
}

.tb-row__note {
	color: #6b5a49;
	font-size: 0.9375rem;
	line-height: 1.3;
}

.tb-row__cash {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1px;
	text-align: right;
}

.tb-row__total {
	color: var(--tb-ink);
	font-weight: 700;
	font-size: 1.375rem;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.tb-row__was {
	color: #9a8b78;
	font-size: 0.9375rem;
	line-height: 1.2;
	text-decoration: line-through;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.tb-row__was[hidden] {
	display: none;
}

.tb-row__badge {
	position: absolute;
	top: 0;
	right: 22px;
	z-index: 2;
	transform: translateY(-50%);
	padding: 5px 12px;
	border-radius: 6px;
	background: var(--tb-cta-hover);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	white-space: nowrap;
	pointer-events: none;
}

.tb-row__badge::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 100%;
	width: 0;
	height: 0;
	border-left: 7px solid var(--tb-cta-hover);
	border-bottom: 6px solid transparent;
}

/* ---------- bundle ---------- */

.tb-bundle__card {
	border: 1.5px solid var(--tb-line);
	border-radius: var(--tb-radius);
	background: var(--tb-cream);
	overflow: hidden;
}

.tb-bundle__list {
	margin: 0;
	padding: 4px 0;
	list-style: none;
}

.tb-bundle__list li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 8px 14px;
	margin: 0;
	font-size: 0.9rem;
	border-bottom: 1px dashed #eae1d3;
}

.tb-bundle__list li:last-child {
	border-bottom: 0;
}

.tb-bundle__name {
	flex: 1 1 auto;
	color: var(--tb-ink);
}

.tb-bundle__meta {
	color: #8a7660;
	font-size: 0.8125rem;
	white-space: nowrap;
}

.tb-bundle__price {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: var(--tb-body);
}

.tb-bundle__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	background: var(--tb-cream-2);
	border-top: 1px solid var(--tb-line);
}

.tb-bundle__total {
	font-size: 1rem;
	color: var(--tb-ink);
}

.tb-bundle__total s {
	opacity: 0.55;
	font-weight: 400;
}

.tb-bundle__save {
	color: #2f7d4f;
	font-size: 0.8125rem;
	font-weight: 700;
}

.tb-bundle__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--tb-cta);
	color: #fff !important;
	font-weight: 700;
	font-size: 0.875rem;
	text-decoration: none !important;
	transition: background 0.15s ease;
}

.tb-bundle__add:hover,
.tb-bundle__add:focus {
	background: var(--tb-cta-hover);
	color: #fff;
}

.tb-bundle__add.is-busy {
	opacity: 0.65;
	pointer-events: none;
}

/* ---------- free gift / upsell ---------- */

.tb-gift__row {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border: 1.5px dashed var(--tb-line);
	border-radius: var(--tb-radius);
	background: var(--tb-cream);
	cursor: pointer;
}

.tb-gift__row:hover {
	border-color: #c3b7a2;
}

.tb-gift__check {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tb-gift__box {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1.5px solid #b9ab96;
	border-radius: 5px;
	background: #fff;
	position: relative;
}

.tb-gift__check:checked + .tb-gift__box {
	background: var(--tb-leaf);
	border-color: #7fae5c;
}

.tb-gift__check:checked + .tb-gift__box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid rgb(43, 23, 4);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.tb-gift__check:focus-visible + .tb-gift__box {
	outline: 2px solid var(--tb-cta);
	outline-offset: 2px;
}

.tb-gift__text {
	font-size: 0.9rem;
}

.tb-gift__text strong {
	color: var(--tb-ink);
}

.tb-gift__note {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 7px;
	border-radius: 999px;
	background: #eef7e7;
	color: #2b5f22;
	font-size: 0.75rem;
	font-weight: 700;
	white-space: nowrap;
}

/* ---------- cart side ---------- */

.tb-was {
	opacity: 0.6;
	font-size: 0.9em;
}

.tb-locked-qty {
	font-weight: 700;
}

/* ---------- small screens ---------- */

@media (max-width: 560px) {
	.tb-stock__title {
		gap: 10px;
		font-size: 1rem;
	}

	.tb-stock {
		gap: 14px;
	}

	.tb-row {
		gap: 11px;
		padding: 12px 14px;
	}

	.tb-row__input {
		width: 22px;
		height: 22px;
		border-width: 2px;
	}

	.tb-row__label {
		font-size: 1.0625rem;
	}

	.tb-row__note {
		font-size: 0.875rem;
	}

	.tb-row__total {
		font-size: 1.1875rem;
	}

	.tb-row__was {
		font-size: 0.8125rem;
	}

	.tb-row__badge {
		right: 12px;
		padding: 4px 10px;
		font-size: 0.75rem;
	}

	.tb-bundle__foot {
		flex-direction: column;
		align-items: stretch;
	}

	.tb-bundle__add {
		width: 100%;
	}
}
