/*!
 * BetterSax Offer Banner v1.0.1
 * Magazine-style offer cards (Magazine / Variant 2 look).
 */

.bsob-grid {
	--bsob-primary: #999933;
	--bsob-alt: #151719;
	--bsob-cols: 2;
	--bsob-overlay: 1;
	--bsob-title-color: #ffffff;
	--bsob-sub-color: rgba(255, 255, 255, 0.82);
	--bsob-feat-color: rgba(255, 255, 255, 0.82);
	--bsob-note-color: rgba(255, 255, 255, 0.62);
	--bsob-seal-color: #ffffff;
	--bsob-coupon-color: #ffffff;
	--bsob-coupon-ring: rgba(255, 255, 255, 0.4);
	--bsob-coupon-bg: transparent;
	--bsob-btn-hover-bg: #151719;
	--bsob-btn-hover-color: #ffffff;
	display: grid;
	grid-template-columns: repeat(var(--bsob-cols), minmax(0, 1fr));
	gap: 22px;
	align-items: start;
	box-sizing: border-box;
	width: 100%;
	margin-left: 0;
	margin-right: auto;
}

.bsob-grid.bsob-grid--equal {
	align-items: stretch;
}

/* ---------- Card ---------- */

.bsob-card {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	justify-self: start;
	min-height: 480px;
	border-radius: 24px;
	overflow: hidden;
	isolation: isolate;
	box-sizing: border-box;
	background-color: var(--bsob-tone);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bsob-card *,
.bsob-card *::before,
.bsob-card *::after {
	box-sizing: border-box;
}

.bsob-card--primary {
	--bsob-tone: var(--bsob-primary);
	--bsob-eb-bg: #ffffff;
	--bsob-eb-color: var(--bsob-tone);
	--bsob-btn-bg: #ffffff;
	--bsob-btn-color: #151719;
	--bsob-check: #ffffff;
	--bsob-em: #ffffff;
}

.bsob-card--alt {
	--bsob-tone: var(--bsob-alt);
	--bsob-eb-bg: var(--bsob-primary);
	--bsob-eb-color: #ffffff;
	--bsob-btn-bg: var(--bsob-primary);
	--bsob-btn-color: #ffffff;
	--bsob-check: #5a9761;
	--bsob-em: var(--bsob-primary);
}

/* Background image / placeholder */
.bsob-card .bsob-card__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transition: transform 0.5s ease;
}

.bsob-card .bsob-card__media--placeholder {
	background-image: linear-gradient(180deg, #7c7c7c 0%, #a3a3a3 55%, #c9c9c9 100%);
	overflow: hidden;
}

/* Subtle lighter curved shape on the right when there is no image. */
.bsob-card .bsob-card__media--placeholder::after {
	content: "";
	position: absolute;
	left: 22%;
	top: 26%;
	width: 135%;
	height: 150%;
	border-radius: 50%;
	background: linear-gradient(170deg, #e2e2e2 0%, #f7f7f7 45%, #ffffff 100%);
}

.bsob-card .bsob-card__media--placeholder::before {
	content: "";
	position: absolute;
	left: -18%;
	top: 34%;
	width: 60%;
	height: 50%;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	filter: blur(2px);
}

/* 105deg tone overlay: solid -> 88% at 46% -> ~22% at 100% */
.bsob-card .bsob-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--bsob-tone);
	opacity: var(--bsob-overlay);
	-webkit-mask-image: linear-gradient(105deg, #000 0%, rgba(0, 0, 0, 0.88) 46%, rgba(0, 0, 0, 0.22) 100%);
	mask-image: linear-gradient(105deg, #000 0%, rgba(0, 0, 0, 0.88) 46%, rgba(0, 0, 0, 0.22) 100%);
	pointer-events: none;
}

.bsob-grid--zoom .bsob-card:hover .bsob-card__media {
	transform: scale(1.05);
}

.bsob-grid--lift .bsob-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* ---------- Copy block ---------- */

.bsob-card .bsob-card__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	max-width: 74%;
	padding: 48px 50px;
}

/* Eyebrow pill */
.bsob-card .bsob-card__eyebrow {
	display: inline-block;
	margin: 0 0 18px;
	padding: 7px 13px;
	border-radius: 999px;
	background: var(--bsob-eb-bg);
	color: var(--bsob-eb-color);
	font-size: 9.5px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

/* Title */
.bsob-card .bsob-card__title {
	margin: 0;
	padding: 0;
	color: var(--bsob-title-color);
	font-family: inherit;
	font-size: clamp(36px, 3.8vw, 54px);
	font-weight: 800;
	line-height: 0.88;
	letter-spacing: -0.5px;
	text-transform: none;
}

.bsob-card .bsob-card__title em {
	font-style: normal;
	color: var(--bsob-em);
}

/* Subtitle */
.bsob-card .bsob-card__subtitle {
	max-width: 300px;
	margin: 14px 0 20px;
	color: var(--bsob-sub-color);
	font-size: 14px;
	line-height: 1.55;
}

/* Feature list */
.bsob-card .bsob-card__features {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.bsob-card .bsob-card__feature {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 0;
	color: var(--bsob-feat-color);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.bsob-card .bsob-card__feature::before,
.bsob-card .bsob-card__feature::marker {
	content: none;
}

.bsob-card .bsob-card__feature--lead {
	font-weight: 700;
}

.bsob-card .bsob-card__check {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	margin-top: 1px;
	color: var(--bsob-check);
}

/* Seal */
.bsob-card .bsob-card__seal {
	position: absolute;
	top: 32px;
	right: 32px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 108px;
	height: 108px;
	border-radius: 50%;
	background: #999933;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
	color: var(--bsob-seal-color);
	text-align: center;
}

.bsob-card .bsob-card__seal-big {
	display: block;
	font-size: 36px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.5px;
}

.bsob-card .bsob-card__seal-small {
	display: block;
	margin-top: 3px;
	font-size: 9px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

/* Actions */
.bsob-card .bsob-card__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.bsob-card a.bsob-card__btn,
.bsob-card a.bsob-card__btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border: 0;
	border-radius: 6px;
	background: var(--bsob-btn-bg);
	color: var(--bsob-btn-color);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bsob-card a.bsob-card__btn:hover,
.bsob-card a.bsob-card__btn:focus-visible {
	background: var(--bsob-btn-hover-bg);
	color: var(--bsob-btn-hover-color);
	text-decoration: none;
}

.bsob-card .bsob-card__btn-icon {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	line-height: 1;
}

.bsob-card .bsob-card__btn-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.bsob-card .bsob-card__btn-icon i {
	color: inherit;
}

/* Coupon chip */
.bsob-card .bsob-card__coupon,
.bsob-card .bsob-card__coupon:hover,
.bsob-card .bsob-card__coupon:focus {
	display: inline-block;
	margin: 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--bsob-coupon-bg);
	box-shadow: inset 0 0 0 1.5px var(--bsob-coupon-ring);
	color: var(--bsob-coupon-color);
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	outline: none;
}

.bsob-card button.bsob-card__coupon {
	cursor: pointer;
}

.bsob-card button.bsob-card__coupon:focus-visible {
	outline: 2px solid var(--bsob-coupon-color);
	outline-offset: 2px;
}

.bsob-card .bsob-card__coupon.is-copied {
	box-shadow: inset 0 0 0 1.5px var(--bsob-coupon-color);
}

/* Note */
.bsob-card .bsob-card__note {
	margin: 16px 0 0;
	color: var(--bsob-note-color);
	font-size: 11px;
	line-height: 1.45;
	letter-spacing: 0.2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.bsob-card .bsob-card__content {
		max-width: 100%;
		padding: 36px 34px;
	}

	.bsob-card .bsob-card__seal {
		top: 22px;
		right: 22px;
	}
}

@media (max-width: 767px) {
	.bsob-grid {
		--bsob-cols: 1;
	}

	.bsob-card {
		min-height: 440px;
	}

	.bsob-card .bsob-card__content {
		padding: 28px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bsob-card,
	.bsob-card .bsob-card__media,
	.bsob-card a.bsob-card__btn {
		transition: none;
	}
}

/* v2: smaller /month */
.bsob-card .bsob-card__title { white-space: nowrap; }
.bsob-card .bsob-card__title em { font-size: 0.45em; white-space: nowrap; letter-spacing: 0; }
@media (max-width: 767px) { .bsob-card .bsob-card__title { padding-right: 96px; } .bsob-card .bsob-card__title em { font-size: 0.42em; } }

/* Highlight Annual / savings-badge card with brand olive border */
.bsob-card:has(.bsob-card__seal) {
  border: 4px solid #999933;
  box-shadow: 0 12px 32px rgba(153, 153, 51, 0.25);
}
