/**
 * Category buy box: two option tiles (6 / 12 months) with the Buy button under them.
 * Look of the Pricing page toggle: white card, warm grey tiles, teal #28BDB1 for
 * the chosen one, dark teal #127A71 text, yellow #F8C83E tag. Everything is scoped
 * to the hero's buy row that holds .bfi-buybox.
 */

/* The theme's pill becomes a card; tiles first, button under them */
.landing-buy-section:has(.bfi-buybox) {
	margin-bottom: 56px !important; /* the hero has no bottom padding: keep the card off the logo band */
	border-radius: 24px !important;
	box-shadow: 0 10px 30px rgba(31, 41, 51, .06);
}
.landing-buy-section:has(.bfi-buybox) .vc_column-inner {
	padding: 12px !important;
}
.landing-buy-section:has(.bfi-buybox) .wpb_wrapper {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.landing-buy-section:has(.bfi-buybox) .w-btn-wrapper {
	display: block !important;
	order: 2;
	margin: 0 !important;
}
.landing-buy-section:has(.bfi-buybox) .w-btn-wrapper .w-btn {
	width: 100%;
	justify-content: center;
}
.landing-buy-section:has(.bfi-buybox) .subscription-buy:not(:has(*:not(.wpb_wrapper))) {
	display: none; /* the theme's empty text block after the box */
}

.landing-buy-section .price-selection.bfi-buybox {
	display: block !important;
	order: 1;
	padding: 0 !important;
	font-family: Poppins, sans-serif;
}
.bfi-buybox .bfi-buybox__opts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	min-width: 0;
	padding: 0;
}

/* The theme's radio inputs stay (its script reads them) but are hidden; the tiles are their labels */
.bfi-buybox .bfi-buybox__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}
.bfi-buybox .bfi-buybox__opt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	margin: 0;
	padding: 12px 16px;
	border: 1.5px solid #E6E3DC;
	border-radius: 16px;
	background: #FAF9F6;
	color: #5C6B6D;
	font-size: 13px;
	line-height: 1.35;
	cursor: pointer;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.bfi-buybox .bfi-buybox__opt:hover {
	border-color: #BFE6E2;
}
.bfi-buybox .bfi-buybox__input:checked + .bfi-buybox__opt {
	border-color: #28BDB1;
	background: #F2FAF9;
	box-shadow: 0 0 0 3px rgba(40, 189, 177, .12);
}
.bfi-buybox .bfi-buybox__input:focus-visible + .bfi-buybox__opt {
	outline: 2px solid #127A71;
	outline-offset: 2px;
}

.bfi-buybox__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
}
.bfi-buybox__dot {
	flex: none;
	width: 16px;
	height: 16px;
	border: 1.5px solid #C9C5BC;
	border-radius: 50%;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.bfi-buybox__input:checked + .bfi-buybox__opt .bfi-buybox__dot {
	border-color: #28BDB1;
	box-shadow: inset 0 0 0 3.5px #fff, inset 0 0 0 8px #28BDB1;
}
.bfi-buybox .bfi-buybox__title {
	color: #1A1A1A;
	font-size: 15px;
	font-weight: 600;
}
.bfi-buybox .bfi-buybox__badge {
	margin-left: auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: #FDF1C7;
	color: #7A5A00;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	white-space: nowrap;
}
/* Price and price per month on one line */
.bfi-buybox .bfi-buybox__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 10px;
	margin-top: 4px;
}
.bfi-buybox .bfi-buybox__price {
	color: #1A1A1A;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.01em;
}
.bfi-buybox .bfi-buybox__price sup {
	top: -.7em;
	margin-right: 1px;
	font-size: 14px;
	font-weight: 500;
}
.bfi-buybox .bfi-buybox__month {
	color: #127A71;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}
.bfi-buybox .bfi-buybox__note {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #ECE9E2;
	color: #5C6B6D;
}

/* Phones: tiles stay side by side, a little tighter */
@media (max-width: 480px) {
	.bfi-buybox .bfi-buybox__opts {
		gap: 8px;
	}
	.bfi-buybox .bfi-buybox__opt {
		padding: 12px 12px 11px;
		font-size: 12px;
	}
	.bfi-buybox .bfi-buybox__price {
		font-size: 24px;
	}
	.bfi-buybox .bfi-buybox__row {
		flex-direction: column; /* tiles too narrow for one line: price per month under the price, same in both tiles */
	}
	.bfi-buybox .bfi-buybox__month {
		font-size: 12px;
	}
	.landing-buy-section:has(.bfi-buybox) {
		margin-bottom: 40px !important;
	}
	/* The tag sits on the tile's top edge, so both prices stay on one line */
	.bfi-buybox .bfi-buybox__opts {
		margin-top: 8px;
	}
	.bfi-buybox .bfi-buybox__opt {
		position: relative;
	}
	.bfi-buybox .bfi-buybox__badge {
		position: absolute;
		top: 0;
		right: 10px;
		transform: translateY(-50%);
		margin: 0;
		box-shadow: 0 0 0 2px #fff;
	}
}
