/* ==========================================================================
   buildashelf v5 — welcome-offer pop-up (markup: template-parts/footer/promo-popup.php).
   Sits outside .bas-home, so everything is scoped under .bas-promo. Colours come from base.css tokens.
   ========================================================================== */

.bas-promo, .bas-promo *, .bas-promo *::before, .bas-promo *::after { box-sizing: border-box; margin: 0; padding: 0; }
.bas-promo[hidden] { display: none; }
body.bas-promo-open { overflow: hidden; }

.bas-promo {
	position: fixed; inset: 0; z-index: 1000;
	display: flex; align-items: center; justify-content: center; padding: 20px;
	font-family: var(--font-body); color: var(--ink);
}
.bas-promo .promo-backdrop { position: absolute; inset: 0; background: rgba(30,29,27,0.6); opacity: 0; transition: opacity 0.25s ease; }
.bas-promo.is-open .promo-backdrop { opacity: 1; }

.bas-promo .promo-dialog {
	position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto;
	background: var(--cream); border-top: 5px solid var(--rust); padding: 40px 36px 30px;
	opacity: 0; transform: translateY(14px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.bas-promo.is-open .promo-dialog { opacity: 1; transform: none; }
.bas-promo .promo-dialog:focus { outline: none; }

.bas-promo .promo-close {
	position: absolute; top: 10px; right: 12px; width: 36px; height: 36px;
	background: none; border: none; cursor: pointer;
	font-size: 28px; line-height: 1; color: var(--ink-mid);
}
.bas-promo .promo-close:hover { color: var(--rust); }

/* Small label with the logo's shelf line underneath (same motif as the homepage section labels). */
.bas-promo .promo-label {
	position: relative; width: fit-content; padding-bottom: 9px; margin-bottom: 14px;
	font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
	text-transform: uppercase; color: var(--rust); line-height: normal;
}
.bas-promo .promo-label::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
	border: 2px solid currentColor; border-bottom: 0;
}
.bas-promo .promo-title {
	font-family: var(--font-display); font-size: 34px; font-weight: 500;
	letter-spacing: -0.5px; line-height: 1.12; color: var(--navy); margin-bottom: 12px;
}
.bas-promo .promo-sub { font-size: 15px; line-height: 1.7; color: var(--ink-mid); font-weight: 300; }

.bas-promo .promo-code-row { display: flex; gap: 10px; margin: 24px 0 16px; }
.bas-promo .promo-code {
	flex: 1; display: flex; align-items: center; justify-content: center;
	padding: 12px; background: var(--white); border: 2px dashed var(--rust);
	font-family: var(--font-label); font-size: 20px; font-weight: 700; letter-spacing: 3px; color: var(--ink);
}
.bas-promo .promo-copy {
	background: var(--navy); color: #fff; border: none; border-radius: 0; cursor: pointer; padding: 0 18px;
	font-family: var(--font-label); font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}
.bas-promo .promo-copy:hover { background: #31455b; }

.bas-promo .promo-cta {
	display: block; text-align: center; background: var(--rust); color: #fff; text-decoration: none; padding: 14px 24px;
	font-family: var(--font-label); font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
	transition: background 0.15s;
}
.bas-promo .promo-cta:hover { background: var(--rust-soft); color: #fff; }
.bas-promo .promo-note { margin-top: 14px; font-size: 12px; color: var(--warm-mid); text-align: center; line-height: 1.5; }

.bas-promo button:focus-visible, .bas-promo a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

@media (max-width: 600px) {
	.bas-promo .promo-dialog { padding: 36px 22px 24px; }
	.bas-promo .promo-title { font-size: 28px; }
	.bas-promo .promo-code-row { flex-direction: column; }
	.bas-promo .promo-copy { padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.bas-promo .promo-backdrop, .bas-promo .promo-dialog { transition: none; }
}
