/* ==========================================================================
   Bohemian & Chic — Promo bar (dismissable)
   ========================================================================== */

.bc-promo-bar {
	overflow: hidden;
	background: var(--bc-black);
	color: var(--bc-white);
	transition: max-height 0.4s ease, opacity 0.3s ease;
	max-height: 56px;
}

.bc-promo-bar.is-dismissed {
	max-height: 0;
	opacity: 0;
}

.bc-promo-bar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.4rem var(--bc-space-sm);
	padding: 0.55rem var(--bc-space-sm);
	font-size: 0.6875rem;
	letter-spacing: var(--bc-ls-widest);
	text-transform: uppercase;
	line-height: 1.2;
}

.bc-promo-bar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.bc-promo-bar__sep {
	opacity: 0.45;
}

.bc-promo-bar__klarna-logo {
	display: inline-block;
	height: 12px;
	width: auto;
	vertical-align: middle;
	filter: brightness(0) invert(1);
}

.bc-promo-bar strong {
	color: var(--bc-accent-light);
	font-weight: var(--bc-fw-semi);
}

.bc-promo-bar__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-left: auto;
	color: rgba(255, 255, 255, 0.5);
	background: none;
	border: 0;
	cursor: pointer;
	transition: color var(--bc-transition-fast);
}

.bc-promo-bar__close:hover,
.bc-promo-bar__close:focus-visible {
	color: var(--bc-white);
}

.bc-promo-bar__close svg {
	width: 14px;
	height: 14px;
}

/* Mobile (≤768px) · Rotador cross-fade entre ítems (5s por cada uno) —
   reunión 2026-11-19: en desktop no hay espacio para más mensajes, pero en móvil
   sí interesa rotar para dar aire a la barra y preparar añadir descuentos más
   adelante. Los ítems se posicionan uno encima del otro, cambia `.is-active`
   por JS y la opacity transita. `prefers-reduced-motion` mantiene el primero
   fijo sin rotar. */
@media (max-width: 768px) {
	.bc-promo-bar__inner {
		font-size: 0.75rem;
		padding: 0.625rem 0.75rem;
		position: relative;
		min-height: 2.25rem;
	}

	.bc-promo-bar__sep {
		display: none;
	}

	.bc-promo-bar__item {
		position: absolute;
		inset: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		opacity: 0;
		transition: opacity 0.45s ease;
		pointer-events: none;
		padding-right: 2.5rem;
	}

	.bc-promo-bar__item.is-active {
		opacity: 1;
		pointer-events: auto;
	}

	.bc-promo-bar__klarna-logo {
		height: 12px;
	}

	.bc-promo-bar__close {
		position: absolute;
		top: 50%;
		right: 0.25rem;
		transform: translateY(-50%);
	}
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
	.bc-promo-bar__item {
		transition: none;
	}
	/* Deja solo el primero visible; evita el flasheo del rotador. */
	.bc-promo-bar__item:not(.is-active) {
		opacity: 0;
	}
}
