/* =============================================
   NUTRAVIVA BLACK FRIDAY ANNOUNCER BAR
   Cross-promo bar for superfastdiet.com (shared sfd-theme).
   Date-gated server-side (see inc/bf-announcer.php) — this file
   only styles the bar; it is never shown outside the sale window
   unless the dev/staging ?bf_preview=1 override is used.

   Design: dark ground (#1A202C) + gold accent (#F9B233), mirrors
   the Foundation announcer bar's placement/behaviour.
   ============================================= */

.sfd-bf-bar {
	position: relative;
	background: #1A202C; /* dark ground (matches theme ink) */
	color: #FFFFFF;
	font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
	line-height: 1.3;
	border-bottom: 2px solid #F9B233; /* gold accent */
}

/* Whole bar is a single CTA. Keep room on the right for the close button. */
.sfd-bf-bar__link {
	display: block;
	color: inherit;
	text-decoration: none;
	text-align: center;
	padding: 12px 48px; /* 48px right/left keeps text clear of the × button */
	transition: opacity 0.2s ease;
}

.sfd-bf-bar__link:hover,
.sfd-bf-bar__link:focus {
	opacity: 0.9;
	color: inherit;
	text-decoration: none;
}

.sfd-bf-bar__text b {
	font-weight: 800;
	color: #F9B233; /* gold */
}

.sfd-bf-bar__sep {
	color: #F9B233;
	margin: 0 4px;
}

.sfd-bf-bar__cta {
	color: #F9B233;
	font-weight: 800;
	white-space: nowrap;
}

/* Dismiss button */
.sfd-bf-bar__close {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	color: #FFFFFF;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	border-radius: 999px;
	opacity: 0.8;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.sfd-bf-bar__close:hover,
.sfd-bf-bar__close:focus {
	opacity: 1;
	background: rgba(255, 255, 255, 0.12);
	outline: none;
}

/* Tablet */
@media (max-width: 768px) {
	.sfd-bf-bar {
		font-size: 14px;
	}
	.sfd-bf-bar__link {
		padding: 11px 44px;
	}
}

/* Mobile (≈390px target) */
@media (max-width: 480px) {
	.sfd-bf-bar {
		font-size: 12.5px;
	}
	.sfd-bf-bar__link {
		padding: 10px 40px;
	}
	.sfd-bf-bar__sep {
		margin: 0 3px;
	}
	.sfd-bf-bar__close {
		right: 6px;
		width: 28px;
		height: 28px;
		font-size: 20px;
	}
}
