/* ObellyClub Countdown — barra sticky + shortcode */

.obc-cd {
	background: var(--obc-cd-bg, #0A0A0A);
	color: var(--obc-cd-text, #fff);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	position: relative;
	z-index: 9999;
}
.obc-cd--sticky {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
}
/* Respetar la admin bar de WordPress */
.admin-bar .obc-cd--sticky { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .obc-cd--sticky { top: 46px; }
}

/* Empuja cualquier topbar/nav fijo arriba para que quede DEBAJO del countdown.
   La variable --obc-cd-h la actualiza el JS con el alto real medido. */
:root { --obc-cd-h: 97px; }

/* Spacer en el flujo del body. Por defecto NO ocupa altura — la mayoría
   de themes ya tienen padding/offset suficiente en su primer wrapper
   para que el contenido no quede tapado por el countdown fijo. Si en tu
   theme el countdown tapa contenido, sobreescribe en tu CSS:
   .obc-cd__spacer { height: var(--obc-cd-h) !important; } */
.obc-cd__spacer {
	display: block !important;
	width: 100% !important;
	height: 0 !important;
	pointer-events: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	flex: 0 0 auto !important;
}

/* El plugin SOLO empuja el topbar cuando este es position:fixed (porque
   solo entonces se solaparía con el countdown). El JS le añade el
   atributo data-obc-fix-push="1" cuando detecta ese caso. */
[data-obc-fix-push="1"] {
	top: calc(var(--obc-cd-h) - 1px) !important;
}
.admin-bar [data-obc-fix-push="1"] {
	top: calc(32px + var(--obc-cd-h) - 1px) !important;
}
@media screen and (max-width: 782px) {
	.admin-bar [data-obc-fix-push="1"] {
		top: calc(46px + var(--obc-cd-h) - 1px) !important;
	}
}

.obc-cd__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 14px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.obc-cd__left {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}
.obc-cd__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--obc-cd-accent, #B83A6E);
	color: #fff;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 8px 14px;
	border-radius: 4px;
	white-space: nowrap;
}
.obc-cd__copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.obc-cd__headline {
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--obc-cd-text, #fff);
	line-height: 1.2;
}
.obc-cd__sub {
	font-size: 13px;
	opacity: 0.7;
	line-height: 1.3;
}

.obc-cd__timer {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-shrink: 0;
}
.obc-cd__cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 56px;
}
.obc-cd__num {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 38px;
	font-weight: 700;
	line-height: 1;
	color: var(--obc-cd-num, #fff);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}
.obc-cd__label {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.7;
	margin-top: 6px;
}

.obc-cd__expired {
	flex: 1;
	text-align: center;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	font-weight: 600;
}
.obc-cd.is-expired .obc-cd__timer { display: none; }
.obc-cd.is-expired .obc-cd__expired { display: block; }
.obc-cd.is-hidden { display: none !important; }

/* Tablet — apila vertical pero compacto */
@media (max-width: 900px) {
	.obc-cd__inner { padding: 10px 18px; gap: 10px; flex-wrap: wrap; justify-content: center; }
	.obc-cd__left { flex: 1 1 auto; justify-content: center; text-align: center; }
	.obc-cd__copy { align-items: center; text-align: center; }
	.obc-cd__timer { gap: 18px; }
	.obc-cd__num { font-size: 28px; }
}

/* Móvil — mantiene badge + headline + sub apilados arriba y timer abajo,
   solo en versión más compacta. Total ~120px de alto. */
@media (max-width: 560px) {
	.obc-cd__inner { padding: 10px 14px; gap: 8px; flex-direction: column; align-items: center; }
	.obc-cd__left { flex-direction: column; gap: 6px; align-items: center; }
	.obc-cd__badge { font-size: 10px; padding: 5px 10px; letter-spacing: 0.08em; }
	.obc-cd__copy { align-items: center; text-align: center; gap: 1px; }
	.obc-cd__headline { font-size: 12px; letter-spacing: 0.06em; }
	.obc-cd__sub { font-size: 10px; opacity: 0.6; }
	.obc-cd__timer { gap: 14px; width: 100%; justify-content: space-around; }
	.obc-cd__cell { min-width: 40px; }
	.obc-cd__num { font-size: 22px; }
	.obc-cd__label { font-size: 8px; margin-top: 2px; letter-spacing: 0.05em; }
}
