/* BOOGEYBEAR Reader Rewards — promotional section on the plushie product page.
   Every rule is scoped to .bbrr-offer so the rest of the site is unaffected.
   Colours and fonts come from the child theme's CSS variables (fallbacks included). */

.bbrr-offer {
	--bbrr-purple: var(--dk-purple, #583985);
	--bbrr-purple-hover: #46296c; /* Darker purple: white text stays above 4.5:1 (theme mid-purple is 4.36:1). */
	--bbrr-cream: var(--lt-brown, #faf6ef);
	--bbrr-text: var(--mid-black, #222222);
	--bbrr-muted: var(--dk-gray, #4b4b4b);
	--bbrr-focus: var(--dk-teal, #077877);

	box-sizing: border-box;
	clear: both;
	width: 100%;
	max-width: 1400px;
	margin: 40px auto;
	padding: 40px 48px;
	border-radius: 20px;
	background: var(--bbrr-cream);
	color: var(--bbrr-text);
	font-family: var(--font-regular, inherit);
	font-size: 17px;
	line-height: 1.55;
	text-align: left;
}

.bbrr-offer *,
.bbrr-offer *::before,
.bbrr-offer *::after {
	box-sizing: inherit;
}

/* Neutralise theme spacing on elements used inside the component only. */
.bbrr-offer p,
.bbrr-offer h2,
.bbrr-offer h3,
.bbrr-offer ol,
.bbrr-offer dl,
.bbrr-offer dd {
	margin: 0;
	padding: 0;
}

/* ---------- Intro ---------- */

.bbrr-offer__intro {
	text-align: center;
}

.bbrr-offer__title {
	color: var(--bbrr-purple);
	font-family: var(--font-black, inherit);
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
	line-height: 1.15;
	letter-spacing: 0.01em;
	margin-bottom: 20px !important;
}

.bbrr-offer__subtitle {
	margin-top: 8px;
	font-family: var(--font-bold, inherit);
	font-size: 1.1em;
}

.bbrr-offer__pitch {
	margin-top: 14px;
	font-size: 1.05em;
}

/* ---------- Price comparison ---------- */

.bbrr-offer__prices {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 6px 28px;
	margin-top: 18px;
}

.bbrr-offer__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.bbrr-offer__price dt {
	font-family: var(--font-medium, inherit);
}

.bbrr-offer__regular {
	color: var(--bbrr-muted);
	text-decoration: line-through;
}

.bbrr-offer__regular .amount,
.bbrr-offer__special .amount {
	color: inherit;
}

.bbrr-offer__special {
	color: var(--bbrr-purple);
	font-family: var(--font-black, inherit);
	font-size: 1.5em;
	line-height: 1;
}

/* ---------- Steps ---------- */

.bbrr-offer__steps-title {
	margin-top: 40px !important;
	color: var(--bbrr-text);
	font-family: var(--font-bold, inherit);
	font-size: 1.15em;
	text-align: center;
}

.bbrr-offer__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 30px 0 !important;
	list-style: none;
	counter-reset: none;
}

.bbrr-offer__step {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
	padding: 30px;
	border-radius: 14px;
	background: #ffffff;
	font-size: 0.95em;
	line-height: 1.45;
}

.bbrr-offer__step::before,
.bbrr-offer__step::marker {
	content: none;
}

.bbrr-offer__step-number {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bbrr-purple);
	color: #ffffff;
	font-family: var(--font-bold, inherit);
	font-size: 0.95em;
	line-height: 1;
}

.bbrr-offer__step-title {
	display: block;
	margin-bottom: 2px;
	font-family: var(--font-bold, inherit);
	font-weight: normal;
}

/* ---------- Call to action ---------- */

.bbrr-offer__cta {
	margin-top: 40px;
	text-align: center;
}

.bbrr-offer .bbrr-offer__button {
	display: inline-block;
	min-height: 48px;
	padding: 14px 32px;
	border: 0;
	border-radius: 999px;
	background: var(--bbrr-purple);
	color: #ffffff;
	font-family: var(--font-bold, inherit);
	font-size: 1.05em;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease-in-out;
}

.bbrr-offer .bbrr-offer__button:hover {
	background: var(--bbrr-purple-hover);
	color: #ffffff;
	text-decoration: none;
}

.bbrr-offer .bbrr-offer__button:focus {
	outline: 3px solid var(--bbrr-focus);
	outline-offset: 3px;
}

.bbrr-offer .bbrr-offer__button:focus:not(:focus-visible) {
	outline: none;
}

.bbrr-offer .bbrr-offer__button:focus-visible {
	outline: 3px solid var(--bbrr-focus);
	outline-offset: 3px;
	color: #ffffff;
}

/* ---------- Fine print and admin notices ---------- */

.bbrr-offer__fine-print {
	margin-top: 20px;
	color: var(--bbrr-muted);
	font-size: 0.8em;
	line-height: 1.5;
	text-align: center;
}

.bbrr-offer__notice {
	margin-bottom: 16px;
	padding: 8px 12px;
	border-left: 4px solid var(--amazon-yellow, #ffd814);
	border-radius: 4px;
	background: #ffffff;
	font-size: 0.85em;
}

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

/* Wide screens: the theme's content container (Total's container width setting)
   may be narrower than 1400px. Let the section grow past it, centred on the
   page, up to 1400px - always leaving 32px each side so it never causes
   horizontal scrolling. If the container is already wider, nothing changes. */
@media (min-width: 1100px) {
	.bbrr-offer {
		--bbrr-width: min(1400px, calc(100vw - 64px));

		width: var(--bbrr-width);
		max-width: none;
		margin-right: calc(50% - var(--bbrr-width) / 2);
		margin-left: calc(50% - var(--bbrr-width) / 2);
	}
}

@media (max-width: 1099px) {
	.bbrr-offer {
		padding: 36px 32px;
	}

	.bbrr-offer__step {
		padding: 22px;
	}
}

@media (max-width: 760px) {
	.bbrr-offer {
		margin: 28px 0;
		padding: 24px 18px;
		border-radius: 16px;
		font-size: 16px;
	}

	.bbrr-offer__steps {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.bbrr-offer__step {
		padding: 14px;
	}

	.bbrr-offer .bbrr-offer__button {
		display: block;
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bbrr-offer .bbrr-offer__button {
		transition: none;
	}
}
