/* FG Promo Popup. A card in the corner, not an overlay: the page behind it
   keeps scrolling and stays clickable. Colours and faces come from the theme's
   own tokens, with the same values as fallbacks if the theme ever changes. */
.fg-promo {
	--p-cream: var(--fg-cream, #F5F1E9);
	--p-line: var(--fg-line, #D8CFBD);
	--p-plum: var(--fg-plum, #5C2A46);
	--p-ink: #20180F;
	--p-muted: #5f564c;
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9990; /* under WooCommerce's cart drawer (9999) and WebToffee's banner (99999) */
	width: min(360px, calc(100vw - 24px));
	box-sizing: border-box;
	padding: 22px 22px 18px;
	background: var(--p-cream);
	color: var(--p-ink);
	border: 1px solid var(--p-line);
	box-shadow: 0 14px 40px rgba(34, 32, 28, .16);
	font-family: var(--fg-sans, Inter, system-ui, sans-serif);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease;
}
.fg-promo.is-in { opacity: 1; transform: none; }

.fg-promo-x {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--p-muted);
	cursor: pointer;
}
.fg-promo-x:hover { color: var(--p-ink); }

.fg-promo-title {
	margin: 0 36px 4px 0;
	font-family: var(--fg-serif, "Cormorant Garamond", Georgia, serif);
	font-weight: 600;
	font-size: 1.65rem;
	line-height: 1.1;
	color: var(--p-plum);
	outline: none;
}
.fg-promo-sub {
	margin: 0 0 12px;
	font-size: .9rem;
	color: var(--p-muted);
}
.fg-promo-body {
	margin: 0 0 14px;
	font-size: .9rem;
	line-height: 1.5;
}
.fg-promo-code {
	display: inline-block;
	padding: 0 .4em;
	border: 1px dashed var(--p-plum);
	color: var(--p-plum);
	font-weight: 600;
	letter-spacing: .06em;
	white-space: nowrap;
}
.fg-promo-cta {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 46px;
	padding: 12px 16px;
	border: 0;
	background: var(--p-plum);
	color: #fff;
	font: 600 .95rem/1.2 var(--fg-sans, Inter, system-ui, sans-serif);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.fg-promo-cta:hover { background: #4a2138; color: #fff; }
.fg-promo-terms {
	margin: 10px 0 0;
	font-size: .78rem;
	line-height: 1.4;
	color: var(--p-muted);
}
.fg-promo-x:focus-visible,
.fg-promo-cta:focus-visible,
.fg-promo-title:focus-visible {
	outline: 2px solid var(--p-plum);
	outline-offset: 2px;
}

/* Phones: a sheet along the bottom edge, well under half the screen. */
@media (max-width: 600px) {
	.fg-promo {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		padding: 18px 18px 14px;
	}
	.fg-promo-title { font-size: 1.45rem; }
	.fg-promo-sub { margin-bottom: 8px; }
	.fg-promo-body { margin-bottom: 12px; font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
	.fg-promo { transition: none; transform: none; }
}

@media print {
	.fg-promo { display: none !important; }
}
