/* Sale terms card — compact so the first product viewport stays complete. */

.bk-buybox .bk-sale-terms {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 8px 0 0;
	padding: 8px 10px;
	border: 1px solid var(--bk-p02-line, #e3e8e5);
	border-radius: 10px;
	background: #fff;
	color: var(--bk-p02-text, #202723);
	overflow-x: hidden;
}

.bk-sale-terms__title {
	margin: 0 0 6px;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.3;
}

.bk-sale-terms__tabs {
	display: flex;
	width: 100%;
	margin: 0 0 6px;
	padding: 2px;
	border-radius: 8px;
	background: var(--bk-p02-surface, #f7f9f6);
	gap: 3px;
}

.bk-sale-terms__tab {
	flex: 1 1 0;
	min-width: 0;
	min-height: 34px;
	padding: 4px 6px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--bk-p02-muted, #5f6b65);
	font: inherit;
	font-weight: 700;
	font-size: 0.78rem;
	cursor: pointer;
}

.bk-sale-terms__tab.is-active,
.bk-sale-terms__tab[aria-selected="true"] {
	background: #fff;
	color: var(--bk-p02-green, #176d02);
	box-shadow: 0 1px 2px rgb(22 56 42 / 10%);
}

.bk-sale-terms__tab:focus-visible {
	outline: 2px solid var(--bk-p02-green, #176d02);
	outline-offset: 2px;
}

.bk-sale-terms__panels {
	min-width: 0;
}

.bk-sale-terms__panel {
	min-width: 0;
}

.bk-sale-terms__panel:not(.is-active) {
	display: none;
}

.bk-sale-terms__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 4px;
}

.bk-sale-terms__chip {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 2px 7px;
	border-radius: 999px;
	background: #eef7ea;
	color: var(--bk-p02-green, #176d02);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.4;
}

.bk-sale-terms__chip--muted {
	background: var(--bk-p02-surface, #f7f9f6);
	color: var(--bk-p02-muted, #5f6b65);
}

.bk-sale-terms__amounts {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.bk-sale-terms__plan-picks {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 6px;
}

.bk-sale-terms__plan-pick {
	min-height: 32px;
	padding: 3px 10px;
	border: 1px solid var(--bk-p02-line, #e3e8e5);
	border-radius: 999px;
	background: #fff;
	color: var(--bk-p02-text, #202723);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
}

.bk-sale-terms__plan-pick.is-active {
	background: #eef7ea;
	border-color: var(--bk-p02-green, #176d02);
	color: var(--bk-p02-green, #176d02);
}

.bk-sale-terms__plan-pick:focus-visible {
	outline: 2px solid var(--bk-p02-green, #176d02);
	outline-offset: 2px;
}

.bk-sale-terms__amounts[hidden],
.bk-sale-terms__row[hidden],
.bk-sale-terms__notice[hidden],
.bk-sale-terms__chip[hidden],
.bk-sale-terms__foot[hidden] {
	display: none !important;
}

.bk-sale-terms__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	min-width: 0;
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--bk-p02-muted, #5f6b65);
}

.bk-sale-terms__row > span:first-child {
	flex: 1 1 auto;
	min-width: 0;
}

.bk-sale-terms__money {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 62%;
	color: var(--bk-p02-text, #202723);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
	direction: ltr;
}

.bk-sale-terms__money--accent {
	color: var(--bk-p02-green, #176d02);
}

.bk-sale-terms__money .woocommerce-Price-amount {
	white-space: nowrap;
}

.bk-sale-terms__notice,
.bk-sale-terms__foot {
	margin: 4px 0 0;
	font-size: 0.72rem;
	line-height: 1.45;
	color: var(--bk-p02-muted, #5f6b65);
}

.bk-sale-terms__summary-list {
	margin: 0;
	padding: 0 1.1rem 0 0;
	font-size: 0.78rem;
	line-height: 1.5;
}

@media (min-width: 1024px) {
	body.single-product.bk-product-v2-layout:has(.bk-sale-terms) .bk-product-v2 {
		padding-bottom: 8px;
	}

	body.single-product.bk-product-v2-layout:has(.bk-sale-terms) .bk-product-v2__breadcrumb {
		padding-top: 8px;
		margin-bottom: 4px;
	}

	body.single-product.bk-product-v2-layout:has(.bk-sale-terms) .bk-product-v2__panel {
		padding: 12px 18px 8px;
		gap: 6px;
	}

	body.single-product.bk-product-v2-layout:has(.bk-sale-terms) .bk-product-v2__actions {
		min-height: 0;
		margin-top: 2px;
	}

	body.single-product.bk-product-v2-layout:has(.bk-sale-terms) .bk-hero-action,
	body.single-product.bk-product-v2-layout:has(.bk-sale-terms) .bk-hero-share,
	body.single-product.bk-product-v2-layout:has(.bk-sale-terms) .bk-hero-compare,
	body.single-product.bk-product-v2-layout:has(.bk-sale-terms) .bk-hero-compare > a {
		min-height: 38px;
		height: 38px;
	}
}

@media (max-width: 400px) {
	.bk-buybox .bk-sale-terms {
		padding: 8px;
	}

	.bk-sale-terms__tab {
		font-size: 0.75rem;
		min-height: 40px;
	}

	.bk-sale-terms__money {
		font-size: 0.78rem;
	}
}
