/* Smart Topbar — Frontend */
:root {
	--stb-bg: var(--contrast, #1a1a1a);
	--stb-text: var(--base, #ffffff);
	--stb-accent: var(--contrast-2, #999999);
}

.smart-topbar {
	width: 100%;
	font-size: 14px;
	line-height: 1.4;
	z-index: 9999;
	animation: stbSlideDown 0.3s ease-out;
}

@keyframes stbSlideDown {
	from { transform: translateY(-100%); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

/* Estilo 1 — Sólido */
.smart-topbar--estilo1 {
	background: var(--stb-bg);
	color: var(--stb-text);
}

/* Estilo 2 — Gradiente */
.smart-topbar--estilo2 {
	background: linear-gradient(135deg, var(--stb-bg) 0%, color-mix(in srgb, var(--stb-bg) 70%, var(--stb-accent)) 100%);
	color: var(--stb-text);
}

/* Estilo 3 — Borde inferior */
.smart-topbar--estilo3 {
	background: var(--stb-bg);
	color: var(--stb-text);
	border-bottom: 3px solid var(--stb-accent);
}

.smart-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: var(--gb-container-width, 1200px);
	margin: 0 auto;
	padding: 10px 40px 10px 16px;
	position: relative;
}

.smart-topbar__content {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
}

.smart-topbar__text {
	font-weight: 500;
}

.smart-topbar__countdown {
	display: flex;
	gap: 6px;
	white-space: nowrap;
}

.stb-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 4px;
	padding: 4px 8px 3px;
	min-width: 40px;
	line-height: 1;
}

.stb-unit__number {
	font-size: 18px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.stb-unit__label {
	font-size: 9px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.7;
	margin-top: 2px;
}

.smart-topbar__cta {
	display: inline-block;
	background: var(--stb-text);
	color: var(--stb-bg);
	padding: 4px 14px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	transition: opacity 0.2s;
	white-space: nowrap;
}

.smart-topbar__cta:hover {
	opacity: 0.85;
	color: var(--stb-bg);
}

.smart-topbar__close {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	padding: 6px;
	opacity: 0.6;
	transition: opacity 0.2s;
	line-height: 1;
}

.smart-topbar__close:hover {
	opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
	.smart-topbar {
		font-size: 12px;
	}

	.smart-topbar__inner {
		padding: 8px 30px 8px 10px;
	}

	.smart-topbar__content {
		flex-direction: column;
		gap: 6px;
	}

	.smart-topbar__countdown {
		gap: 4px;
	}

	.smart-topbar__cta {
		padding: 3px 10px;
		font-size: 12px;
	}

	.smart-topbar__close {
		right: 6px;
		top: 8px;
		transform: none;
	}

	.stb-unit {
		min-width: 32px;
		padding: 3px 6px 2px;
	}

	.stb-unit__number {
		font-size: 14px;
	}

	.stb-unit__label {
		font-size: 8px;
	}
}
