/* ============================================================
   Countdown Timer Widget
   ============================================================ */

.ctw-countdown {
	width: 100%;
}

/* ---- Card ---------------------------------------------------------------- */

.ctw-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
	padding: 48px;
	text-align: center;
	max-width: 680px;
	margin: 0 auto;
}

/* ---- Eyebrow ------------------------------------------------------------- */

.ctw-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1b4b9c;
	margin: 0 0 12px;
}

/* ---- Heading ------------------------------------------------------------- */

.ctw-heading {
	font-size: 2rem;
	font-weight: 800;
	color: #1a2b5f;
	margin: 0 0 10px;
	line-height: 1.2;
}

/* ---- Subtitle ------------------------------------------------------------ */

.ctw-subtitle {
	font-size: 0.95rem;
	color: #555555;
	margin: 0 0 32px;
}

.ctw-subtitle strong {
	font-weight: 700;
	color: #1a2b5f;
}

/* ---- Countdown row ------------------------------------------------------- */

.ctw-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 16px;
	margin-bottom: 32px;
}

/* ---- Individual segment -------------------------------------------------- */

.ctw-segment {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #eef2f8;
	border-radius: 12px;
	padding: 20px 28px;
	min-width: 80px;
}

/* ---- Number -------------------------------------------------------------- */

.ctw-number {
	display: block;
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1;
	color: #1b4b9c;
	font-variant-numeric: tabular-nums;
}

/* ---- Label --------------------------------------------------------------- */

.ctw-label {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #888888;
	margin-top: 8px;
}

/* ---- Button -------------------------------------------------------------- */

.ctw-btn-wrap {
	margin-bottom: 24px;
}

.ctw-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #1a2b5f;
	color: #ffffff;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 8px;
	padding: 14px 32px;
	cursor: pointer;
	border: none;
	transition: background-color 0.18s ease, transform 0.12s ease;
}

.ctw-btn:hover {
	background-color: #142350;
	transform: translateY(-1px);
}

.ctw-btn:active {
	transform: translateY(0);
}

.ctw-btn-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* ---- Calendar picker dropdown -------------------------------------------- */

.ctw-cal-picker {
	position: relative;
	display: inline-block;
}

.ctw-cal-btn {
	gap: 6px;
}

.ctw-chevron {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: transform 0.18s ease;
}

.ctw-cal-picker--open .ctw-chevron {
	transform: rotate( 180deg );
}

.ctw-cal-dropdown {
	display: none;
	position: absolute;
	bottom: calc( 100% + 10px );
	left: 50%;
	transform: translateX( -50% );
	min-width: 230px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, 0.14 );
	list-style: none !important;
	margin: 0;
	padding: 0 !important;
	z-index: 100;
	overflow: hidden;
}

.ctw-cal-picker--open .ctw-cal-dropdown {
	display: block;
}

.ctw-cal-dropdown__header {
	padding: 14px 16px 8px;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #999999;
	text-align: center;
}

.ctw-cal-dropdown li {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.ctw-cal-dropdown a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	font-size: 0.92rem;
	font-weight: 500;
	color: #1a1a2e;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.12s ease;
}

.ctw-cal-dropdown li:last-child a {
	padding-bottom: 14px;
}

.ctw-cal-dropdown a:hover {
	background-color: #f4f6fb;
}

.ctw-cal-icon {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px;
	max-width: 32px;
	flex-shrink: 0;
	display: block;
}

/* ---- Footer note --------------------------------------------------------- */

.ctw-footer-note {
	font-size: 0.8rem;
	color: #888888;
	margin: 0;
	line-height: 1.6;
}

/* ---- Expiry message ------------------------------------------------------ */

.ctw-expired-message {
	font-size: 1.25rem;
	font-weight: 600;
	color: inherit;
	text-align: center;
}

/* ---- Responsive ---------------------------------------------------------- */

@media ( max-width: 600px ) {
	.ctw-card {
		padding: 32px 24px;
	}

	.ctw-heading {
		font-size: 1.5rem;
	}

	.ctw-number {
		font-size: 2rem;
	}

	.ctw-segment {
		padding: 14px 18px;
		min-width: 64px;
	}

	.ctw-btn {
		width: 100%;
		justify-content: center;
	}
}
