/* ── Elemance Countdown Timer Widget ──────────── */
.elmc-cd,
.elmc-cd * ,
.elmc-cd *::before,
.elmc-cd *::after {
	box-sizing: border-box;
}

.elmc-cd {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.elmc-cd__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	flex-shrink: 0;
}

.elmc-cd__num {
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: #ffffff;
}

.elmc-cd__label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-top: 6px;
	color: #a29bfe;
}

/* ── Boxed (default) ──────────────────────────── */
.elmc-cd--boxed .elmc-cd__unit {
	background: #1a1a2e;
	border: 1px solid transparent;
	border-radius: 14px;
}

/* ── Circle ───────────────────────────────────── */
.elmc-cd--circle .elmc-cd__unit {
	background: #1a1a2e;
	border: 2px solid #6c63ff;
	border-radius: 50%;
}

/* ── Flip Card ────────────────────────────────── */
.elmc-cd--flip .elmc-cd__unit {
	background: linear-gradient(180deg, #23233a 0%, #1a1a2e 100%);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 14px;
	position: relative;
	box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.elmc-cd--flip .elmc-cd__unit::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(0,0,0,0.35);
	transform: translateY(-50%);
}

/* ── Minimal (numbers only, no box) ───────────── */
.elmc-cd--minimal .elmc-cd__unit {
	width: auto;
	height: auto;
	flex-direction: row;
	align-items: baseline;
	gap: 6px;
}

.elmc-cd--minimal .elmc-cd__num {
	color: #1a1a2e;
}

.elmc-cd--minimal .elmc-cd__label {
	margin-top: 0;
	color: #6b7280;
}

.elmc-cd--minimal .elmc-cd__unit:not(:last-child)::after {
	content: ':';
	margin-left: 16px;
	font-size: 24px;
	font-weight: 700;
	color: #d1d5db;
}

/* ── Expired state ────────────────────────────── */
.elmc-cd__expired {
	font-size: 20px;
	font-weight: 700;
	color: #ef4444;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 767px) {
	.elmc-cd__unit { width: 68px; height: 68px; }
}

@media (max-width: 480px) {
	.elmc-cd { gap: 10px; }
	.elmc-cd__unit { width: 56px; height: 56px; }
	.elmc-cd__label { font-size: 9px; }
}
