/* Category pages during an offer (class-promo-checkout-category.php).
 * Same dark slate + yellow as the home hero's offer pill and the Pricing page banner. */

/* Pill above the title */
.bfi-cat-promo-pill {
	position: relative;
	overflow: hidden;
	display: block;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 18px !important;
	padding: 6px 16px 6px 6px;
	border-radius: 20px;
	background: linear-gradient(135deg, #1D3437 0%, #2B4448 60%, #1F5A55 100%);
	box-shadow: 0 12px 26px -12px rgba(18, 60, 58, .65), 0 0 0 4px rgba(248, 200, 62, .14);
	color: #fff;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.55;
	text-wrap: balance;
}
.bfi-cat-promo-pill__badge {
	display: inline-block;
	margin-right: 10px;
	padding: 2px 12px;
	border-radius: 999px;
	background: #F8C83E;
	color: #1a1a1a;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .02em;
	white-space: nowrap;
	vertical-align: 1px;
}
.bfi-cat-promo-pill::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
	transform: translateX(-120%) skewX(-18deg);
	animation: bfi-cat-promo-shine 5s ease-in-out 1.2s infinite;
	pointer-events: none;
}
@keyframes bfi-cat-promo-shine {
	0%, 70% { transform: translateX(-120%) skewX(-18deg); }
	100% { transform: translateX(320%) skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
	.bfi-cat-promo-pill::after { animation: none; display: none; }
}

/* ── Offer card ────────────────────────────────────────────────────
 * The theme's white pill (button + radios + price) becomes a card:
 * two plan tiles (what you pay, what you get, price), then a full-width
 * button. Same markup and classes, so the theme's price script still
 * switches the button link; only the order and look change. */
/* !important: some pages save their own pill shape on this row (WPBakery design options) */
.landing-buy-section.bfi-cat-offer-card {
	max-width: 540px;
	border-radius: 18px !important;
	background: #fff !important;
	box-shadow: 0 1px 2px rgba(43, 68, 72, .05), 0 14px 32px -24px rgba(43, 68, 72, .3);
	outline: 1px solid rgba(43, 68, 72, .07);
}
.landing-buy-section.bfi-cat-offer-card > div > .vc_column-inner {
	padding: 12px !important;
}
.bfi-cat-offer-card > div > .vc_column-inner > .wpb_wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.bfi-cat-offer-card .price-selection.bfi-cat-offer-box {
	order: 1;
	display: block;
	padding: 0 !important;
}
.bfi-cat-offer-card .w-btn-wrapper {
	order: 2;
	display: block;
	margin: 0 !important;
}
.bfi-cat-offer-card .subscription-buy {
	display: none;
}
.bfi-cat-offer-card a.w-btn.subscribe {
	display: flex;
	justify-content: center;
	width: 100%;
	padding-block: .72em;
	border-radius: 12px;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.5;
}
/* The single big price is replaced by a price in each tile */
.bfi-cat-offer-box > div[class^="price-"] {
	display: none !important;
}

/* Plan tiles */
.bfi-cat-offer-box .select-period {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	min-width: 0 !important;
	padding: 0 !important;
}
.bfi-cat-offer-box .select-period br {
	display: none;
}
.bfi-cat-offer-box .select-period input[type=radio] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.bfi-cat-offer-box .select-period label {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin: 0;
	padding: 11px 12px 11px 40px;
	border: 1.5px solid #E2E7E7;
	border-radius: 12px;
	background: #fff;
	color: #2B4448;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.bfi-cat-offer-box .select-period label:hover {
	border-color: #9FD9D3;
}
/* Radio dot */
.bfi-cat-offer-box .select-period label::before {
	content: "";
	position: absolute;
	top: 13px;
	left: 13px;
	width: 18px;
	height: 18px;
	box-sizing: border-box;
	border: 1.5px solid #B9C4C5;
	border-radius: 50%;
	background: #fff;
}
.bfi-cat-offer-box .select-period input:checked + label {
	border-color: #28BDB1;
	background: #F2FBFA;
	box-shadow: 0 0 0 3px rgba(40, 189, 177, .14);
}
.bfi-cat-offer-box .select-period input:checked + label::before {
	border: 5px solid #127A71;
}
.bfi-cat-offer-box .select-period input:focus-visible + label {
	outline: 2px solid #127A71;
	outline-offset: 2px;
}
.bfi-cat-opt__title {
	font-size: 14.5px;
	font-weight: 600;
}
.bfi-cat-opt__sub {
	color: #127A71;
	font-size: 12.5px;
	font-weight: 600;
}
.bfi-cat-opt__price {
	margin-top: 4px;
	color: #1a1a1a;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.01em;
}
.bfi-cat-opt__price .bfi-cat-offer__cur {
	margin-right: 1px;
	font-size: .62em;
	vertical-align: .5em;
}

/* Under the card: offer line + dates */
.bfi-cat-offer {
	max-width: 540px;
	margin: 14px 0 40px 4px;
}
/* Card closer to the list: drop the spacer of the theme's always-hidden
 * "Exclusive for the 1 year plan" block, and part of the spacer above the card. */
.product-header .whats-included-wrapper .w-separator.hide-12-months {
	display: none;
}
.product-header .landing-buy-section.bfi-cat-offer-card {
	margin-top: -12px !important;
}

/* ── Hero layout during the offer (computers) ──────────────────────
 * More air between the blocks of the left column, and the platform
 * image centred on the left column's height instead of pinned to its top. */
@media (min-width: 1025px) {
	.product-header .bfi-cat-promo-pill {
		margin-bottom: 26px !important;
	}
	.product-header .subscription-includes li {
		margin-bottom: 14px;
	}
	.product-header .product-header-platform-image .landing-view-demo {
		top: 50% !important;
		transform: translateY(-50%);
	}
}
.bfi-cat-offer p {
	margin: 0 !important;
}
.bfi-cat-offer__gift {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: #2B4448;
	font-size: 15px;
	line-height: 1.45;
}
.bfi-cat-offer__gift strong {
	font-weight: 600;
}
.bfi-cat-offer__icon {
	flex: 0 0 18px;
	margin-top: 1px;
	color: #D9A21B;
}
.bfi-cat-offer__worth {
	white-space: nowrap;
}
.bfi-cat-offer__dates {
	margin-top: 4px !important;
	padding-left: 26px;
	color: #6B7A7C;
	font-size: 13px;
	line-height: 1.4;
}

@media (max-width: 767px) {
	.bfi-cat-promo-pill {
		margin-inline: auto !important;
		padding: 8px 12px;
		border-radius: 14px;
		font-size: 13px;
		text-align: center;
	}
	.bfi-cat-promo-pill__badge {
		margin: 0 6px 0 0;
		font-size: 11px;
	}
	.landing-buy-section.bfi-cat-offer-card,
	.bfi-cat-offer {
		margin-inline: auto !important;
	}
	.bfi-cat-offer {
		margin-bottom: 28px;
	}
	.landing-buy-section.bfi-cat-offer-card > div > .vc_column-inner {
		padding: 12px !important;
	}
	.bfi-cat-offer-box .select-period label {
		padding: 12px 10px 12px 36px;
	}
	.bfi-cat-offer-box .select-period label::before {
		top: 14px;
		left: 11px;
	}
	.bfi-cat-opt__title {
		font-size: 14px;
	}
	.bfi-cat-opt__sub {
		font-size: 12px;
	}
	.bfi-cat-opt__price {
		font-size: 21px;
	}
	.bfi-cat-offer__gift {
		justify-content: center;
		text-align: left;
	}
	.bfi-cat-offer__dates {
		padding-left: 0;
		text-align: center;
	}
}
@media (max-width: 359px) {
	.bfi-cat-offer-box .select-period {
		grid-template-columns: 1fr;
	}
}
