/**
 * Offers page — bundle shop + purchase panel.
 * Uses the site's brand tokens (tokens.css) so it reads as part of the site:
 * dark-green card headers, 22px card radius, Lora headings, and the shared
 * .rsdf-btn--primary pill for every button.
 */

.rsdf-offers { --rsdf-accent: var(--rsdf-orange, #DD5A28); }

/* ── Full-width hero ───────────────────────────────────────────────────── */
.rsdf-offers-hero {
	position: relative;
	min-height: clamp(220px, 32vw, 400px);
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
}
.rsdf-offers-hero__inner {
	max-width: var(--rsdf-content-max-width, 1248px);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--rsdf-gutter, 24px);
	color: #fff;
}
.rsdf-offers-hero h1 {
	font-family: var(--rsdf-font-display, Georgia, serif);
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1.1;
	margin: 0 0 0.4rem;
	color: #fff;
}
.rsdf-offers-hero p {
	font-family: var(--rsdf-font-body, Georgia, serif);
	font-size: clamp(1rem, 2vw, 1.25rem);
	margin: 0;
	max-width: 42ch;
}

/* ── Bundle grid ───────────────────────────────────────────────────────── */
.rsdf-offers__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
	margin: 0 0 2.5rem;
}

.rsdf-offers__card {
	background: var(--rsdf-white, #fff);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(28, 28, 26, 0.08);
	display: flex;
	flex-direction: column;
}

.rsdf-offers__cardhead {
	background: var(--rsdf-green-dark, #333B30);
	padding: 16px 24px;
}
/* Matches .rsdf-pricing-card__header strong exactly: Lora, 1rem, weight 500. */
.rsdf-offers__title {
	font-family: var(--rsdf-font-display, Georgia, serif);
	color: #fff;
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
}
.rsdf-offers__subtitle {
	margin: 0.3rem 0 0;
	font-family: var(--rsdf-font-body, Georgia, serif);
	font-size: 0.9rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.3;
}

.rsdf-offers__cardbody {
	padding: 1.9rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	flex: 1 1 auto;
}

.rsdf-offers__price {
	margin: 0;
	display: flex;
	flex-direction: column;
	font-family: var(--rsdf-font-display, Georgia, serif);
}
.rsdf-offers__price strong { font-size: 2.1rem; color: var(--rsdf-ink, #1C1C1A); line-height: 1; }
.rsdf-offers__price span { color: #6b6f66; font-size: 0.95rem; margin-top: 0.35rem; font-family: var(--rsdf-font-body, Georgia, serif); }

.rsdf-offers__saving {
	margin: 0;
	align-self: flex-start;
	background: rgba(221, 90, 40, 0.1);
	color: var(--rsdf-orange, #DD5A28);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
}

.rsdf-offers__validity { margin: 0; color: #6b6f66; font-size: 0.9rem; }

/* Buttons inherit the shared .rsdf-btn / .rsdf-btn--primary pill; these rules
   only handle layout within the offers surfaces. */
.rsdf-offers__buy { margin-top: auto; width: 100%; }

/* ── Checkout + done panels ────────────────────────────────────────────── */
.rsdf-offers__checkout,
.rsdf-offers__done {
	max-width: 32rem;
	background: var(--rsdf-white, #fff);
	border-radius: 22px;
	padding: 1.75rem;
	box-shadow: 0 6px 24px rgba(28, 28, 26, 0.08);
}
.rsdf-offers__checkout h3,
.rsdf-offers__done h3 { margin-top: 0; font-family: var(--rsdf-font-display, Georgia, serif); color: var(--rsdf-ink, #1C1C1A); }

.rsdf-offers__back {
	background: none;
	border: 0;
	color: #6b6f66;
	cursor: pointer;
	padding: 0;
	margin-bottom: 0.75rem;
	font-size: 0.9rem;
}
.rsdf-offers__back:hover { color: var(--rsdf-ink, #1C1C1A); }

.rsdf-offers__checkout-price { font-size: 1.5rem; font-weight: 700; font-family: var(--rsdf-font-display, Georgia, serif); color: var(--rsdf-ink, #1C1C1A); margin: 0 0 1rem; }

.rsdf-offers__fields { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.rsdf-offers__field { display: flex; flex-direction: column; gap: 0.35rem; }
.rsdf-offers__field span { font-weight: 600; font-size: 0.9rem; color: var(--rsdf-ink, #1C1C1A); }
.rsdf-offers__field input {
	padding: 0.65rem 0.75rem;
	border: 1px solid #d9d9d6;
	border-radius: 10px;
	font-size: 1rem;
	font-family: inherit;
}
.rsdf-offers__field small { color: #6b6f66; font-size: 0.8rem; }

.rsdf-offers__card-el { margin: 0.5rem 0 1rem; min-height: 1rem; }

.rsdf-offers__error {
	margin: 0 0 1rem;
	color: #b42318;
	background: #fef3f2;
	border: 1px solid #fecdca;
	border-radius: 10px;
	padding: 0.6rem 0.8rem;
	font-size: 0.9rem;
}

.rsdf-offers__pay { width: 100%; }
.rsdf-offers__pay:disabled { opacity: 0.55; cursor: not-allowed; }

.rsdf-offers__empty { color: #6b6f66; }
