/**
 * Offer Notice banner.
 *
 * Premium "light cream + gold rule" promotional strip. Sits under the header,
 * above the hero. Single row; stays well under 100px even when wrapped.
 * Tokens mirror the theme palette (--color-accent #ffc800, ink #262525).
 */

.offer-banner {
	position: relative;
	background: #f9f8f5;
	border-top: 2px solid #ffc800;
	border-bottom: 1px solid #ececec;
	color: #262525;
	font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

.offer-banner__inner {
	max-width: 1200px;
	margin: 0 auto;
	min-height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem 0.85rem;
	padding: 0.6rem 3rem; /* right room for the dismiss button */
	text-align: center;
}

/* Gold mark — slightly deepened for AA contrast on cream. */
.offer-banner__icon {
	display: inline-flex;
	color: #b88a00;
	flex: 0 0 auto;
}
.offer-banner__icon svg { width: 24px; height: 24px; display: block; }

.offer-banner__text {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

/* ── Click-to-copy code chip ───────────────────────────────────────────── */
.offer-banner__code {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.28rem 0.6rem;
	background: #fff;
	border: 1.5px dashed #ffc800;
	border-radius: 7px;
	color: #262525;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.05s ease;
}
.offer-banner__code:hover { border-color: #b88a00; background: #fffdf5; }
.offer-banner__code:active { transform: translateY(1px); }
.offer-banner__code:focus-visible { outline: 2px solid #b88a00; outline-offset: 2px; }

.offer-banner__code-label {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9a9892;
}
.offer-banner__code-value {
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}
.offer-banner__code-icon svg { width: 15px; height: 15px; display: block; opacity: 0.55; }

.offer-banner__code-status {
	font-size: 0.78rem;
	font-weight: 600;
	color: #27631c;
	white-space: nowrap;
}
/* When copied, swap the copy glyph for the confirmation text. */
.offer-banner__code.is-copied .offer-banner__code-icon { display: none; }

/* ── Dismiss ───────────────────────────────────────────────────────────── */
.offer-banner__dismiss {
	position: absolute;
	top: 50%;
	right: 0.75rem;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #9a9892;
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
}
.offer-banner__dismiss:hover { color: #262525; background: rgba(0, 0, 0, 0.06); }
.offer-banner__dismiss:focus-visible { outline: 2px solid #b88a00; outline-offset: 2px; }
.offer-banner__dismiss svg { width: 16px; height: 16px; display: block; }

/* Fade on dismiss. */
.offer-banner.is-dismissing { opacity: 0; transition: opacity 0.25s ease; }

@media (max-width: 600px) {
	.offer-banner__inner { padding: 0.55rem 2.75rem; gap: 0.4rem 0.6rem; }
	.offer-banner__text { font-size: 0.95rem; }
	.offer-banner__code { padding: 0.24rem 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.offer-banner,
	.offer-banner__code,
	.offer-banner__dismiss,
	.offer-banner.is-dismissing { transition: none; }
}
