/* ============================================================
   AMIR SUITE — Countdown Widget Styles
   ============================================================ */

.as-cd-wrapper {
	display: block;
	width: 100%;
	direction: rtl;
	box-sizing: border-box;
	padding: 32px;
}

.as-cd-wrapper * { box-sizing: border-box; }

/* ---- Side layout (title left/right of counter) ---- */
.as-cd-side-layout {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
}

.as-cd-side-right { flex-direction: row; }
.as-cd-side-left  { flex-direction: row-reverse; }

/* ---- Inner (units row) ---- */
.as-cd-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
}

/* ---- Title ---- */
.as-cd-title {
	font-size: 22px;
	font-weight: 700;
	color: #f0f6fc;
	position: relative;
}

.as-cd-title.has-deco::after {
	content: '';
	display: block;
	width: 40px;
	height: 3px;
	background: #4ee08a;
	border-radius: 2px;
	margin: 8px auto 0;
}

.as-cd-title-top    { margin-bottom: 16px; text-align: center; }
.as-cd-title-bottom { margin-top: 16px; text-align: center; }
.as-cd-title-right  { flex-shrink: 0; text-align: right; }
.as-cd-title-left   { flex-shrink: 0; text-align: left; }

/* ---- Block (each unit) ---- */
.as-cd-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 100px;
	height: 100px;
	background: rgba(255,255,255,.06);
	border-radius: 14px;
	border: 1px solid rgba(255,255,255,.1);
	padding: 8px;
	position: relative;
	overflow: hidden;
	transition: border-color .25s;
}

.as-cd-block:hover { border-color: rgba(78,224,138,.4); }

/* Glass shimmer */
.as-cd-block::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255,255,255,.07) 0%, transparent 60%);
	pointer-events: none;
}

/* ---- Number ---- */
.as-cd-number {
	font-size: 42px;
	font-weight: 700;
	color: #f0f6fc;
	line-height: 1;
	display: block;
	font-variant-numeric: tabular-nums;
	position: relative;
	z-index: 1;
}

/* ---- Label ---- */
.as-cd-label {
	font-size: 13px;
	font-weight: 500;
	color: rgba(240,246,252,.6);
	white-space: nowrap;
	position: relative;
	z-index: 1;
}

.as-cd-label-top    { margin-bottom: 4px; }
.as-cd-label-bottom { margin-top: 4px; }

/* ---- Separator ---- */
.as-cd-sep {
	font-size: 32px;
	font-weight: 700;
	color: rgba(240,246,252,.4);
	line-height: 1;
	user-select: none;
	margin-top: -8px; /* align with numbers vertically */
	flex-shrink: 0;
}

/* ---- Expired message ---- */
.as-cd-expired {
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	color: #f0f6fc;
	padding: 16px;
}

/* ---- Flip Animation ---- */
@keyframes as-cd-flip-in {
	from { transform: translateY(-20px) rotateX(20deg); opacity: 0; }
	to   { transform: translateY(0) rotateX(0deg); opacity: 1; }
}

.as-cd-number.as-cd-flip {
	animation: as-cd-flip-in 0.35s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
	.as-cd-block { min-width: 72px; height: 72px; }
	.as-cd-number { font-size: 28px; }
	.as-cd-label { font-size: 11px; }
	.as-cd-sep { font-size: 22px; }
	.as-cd-side-layout { flex-direction: column !important; }
	.as-cd-title-right, .as-cd-title-left { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.as-cd-number.as-cd-flip { animation: none; }
}
