/* =====================================================================
 * AAFE Countdown Timer
 * ===================================================================== */

/* aafe:isolated */
/* =====================================================================
 * Isolation from the theme & Elementor Site Settings (Theme Style).
 * The widget shows only its own design by default; global colors and
 * fonts apply when picked from a control's Globals picker.
 * Rules below are scoped with ".elementor" so they outrank Theme Style
 * selectors (0,1,1 / 0,2,1 on :hover) while Elementor control CSS
 * ({{WRAPPER}} = 0,4,0) still wins.
 * ===================================================================== */
.elementor .elementor-widget-aafe_countdown_timer {
	font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #334155;
}

html body .elementor-widget-aafe_countdown_timer :where(h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, label, legend, th, td, caption, li, blockquote, small):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) {
	font-family: inherit;
	font-style: inherit;
	letter-spacing: inherit;
	word-spacing: inherit;
	text-transform: inherit;
}

html body .elementor-widget-aafe_countdown_timer :where(h1, h2, h3, h4, h5, h6):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) {
	color: inherit;
	font-weight: 500;
	line-height: 1.2;
}
html body .elementor-widget-aafe_countdown_timer :where(h1):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) { font-size: 2.5rem; }
html body .elementor-widget-aafe_countdown_timer :where(h2):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) { font-size: 2rem; }
html body .elementor-widget-aafe_countdown_timer :where(h3):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) { font-size: 1.75rem; }
html body .elementor-widget-aafe_countdown_timer :where(h4):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) { font-size: 1.5rem; }
html body .elementor-widget-aafe_countdown_timer :where(h5):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) { font-size: 1.25rem; }
html body .elementor-widget-aafe_countdown_timer :where(h6):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) { font-size: 1rem; }

html body .elementor-widget-aafe_countdown_timer :where(label, legend):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

html body .elementor-widget-aafe_countdown_timer :where(a):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) {
	color: inherit;
	text-decoration: none;
}

html body .elementor-widget-aafe_countdown_timer :where(button, [type="button"], [type="submit"], [type="reset"]):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) {
	background-color: transparent;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	border-radius: 0;
	box-shadow: none;
	text-shadow: none;
}

html body .elementor-widget-aafe_countdown_timer :where(img):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) {
	border-style: none;
	border-radius: 0;
	box-shadow: none;
	opacity: 1;
	filter: none;
}

/* Theme Style :hover / :focus states (0,2,1). Kept above the widget rules
 * so the widget's own state rules still win. */
html body .elementor-widget-aafe_countdown_timer :where(button, [type="button"], [type="submit"], [type="reset"]):is(:hover, :focus, :focus-visible, :active):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) {
	background-color: transparent;
	color: inherit;
	box-shadow: none;
	text-shadow: none;
}

html body .elementor-widget-aafe_countdown_timer :where(a):is(:hover, :focus, :focus-visible, :active):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) {
	color: inherit;
}

html body .elementor-widget-aafe_countdown_timer :where(img):is(:hover, :focus):where(:not(.elementor-widget-aafe_countdown_timer .elementor-element *)) {
	box-shadow: none;
	opacity: 1;
	filter: none;
}
/* aafe:isolated:end */

.elementor .aafe-cd {
	--aafe-cd-circle: 110px;
	--aafe-cd-ring: #6366f1;
	--aafe-cd-track: rgba(99, 102, 241, .15);
	--aafe-cd-ring-w: 4;
	--aafe-cd-text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
}

.elementor .aafe-countdown {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: inherit;
	gap: 14px;
	width: 100%;
}

/* ---------- Item ---------- */
.elementor .aafe-countdown__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 104px;
	padding: 20px 18px;
	box-sizing: border-box;
	text-align: center;
	border-radius: 16px;
	transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, border-color .3s ease;
}

.elementor .aafe-cd-equal-yes .aafe-countdown__item {
	flex: 1 1 0;
}

.elementor .aafe-countdown__box {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.elementor .aafe-countdown__value {
	display: inline-flex;
	font-size: 44px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.01em;
}

/* Each digit lives in a slot of exactly one line height, so animations never clip
   and typography changes (font size) scale the slot with it.
   - The invisible "0" sizer gives the slot the real width of a digit in the
     chosen font / weight / letter-spacing (wide fonts no longer get cut).
   - clip-path clips only top/bottom (for the slide animations); left/right
     stay open so glyph overhang, italics and text-shadow are never cut. */
.elementor .aafe-countdown__slot {
	position: relative;
	display: inline-block;
	height: 1.2em;
	min-width: .62em;
	overflow: visible;
	-webkit-clip-path: inset(0 -.35em);
	clip-path: inset(0 -.35em);
	line-height: 1.2em;
	vertical-align: middle;
	text-align: center;
}

.elementor .aafe-countdown__slot::before {
	content: "0";
	display: inline-block;
	visibility: hidden;
	pointer-events: none;
}

.elementor .aafe-countdown__digit {
	position: absolute;
	inset: 0;
	display: block;
	white-space: nowrap;
	color: inherit;
}

.elementor .aafe-countdown__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Label positions */
.elementor .aafe-cd--labels-above .aafe-countdown__label {
	order: -1;
}

.elementor .aafe-cd--labels-inline .aafe-countdown__item {
	flex-direction: row;
	align-items: baseline;
}

/* ---------- Separator ---------- */
.elementor .aafe-countdown__separator {
	align-self: center;
	font-size: 32px;
	font-weight: 700;
	color: #cbd5e1;
	line-height: 1;
	user-select: none;
}

.elementor .aafe-cd--labels-below .aafe-countdown__separator {
	margin-bottom: 1.1em;
}

.elementor .aafe-cd--labels-above .aafe-countdown__separator {
	margin-top: 1.1em;
}

.elementor .aafe-cd-blink-yes .aafe-countdown__separator {
	animation: aafe-cd-blink 1s steps(1) infinite;
}

@keyframes aafe-cd-blink {
	50% { opacity: .15; }
}

@media (max-width: 767px) {
	.elementor .aafe-cd-hide-sep-m-yes .aafe-countdown__separator {
		display: none;
	}

	.elementor .aafe-countdown__item {
		min-width: 72px;
		padding: 14px 10px;
	}

	.elementor .aafe-countdown__value {
		font-size: 30px;
	}

	.elementor .aafe-countdown__separator {
		font-size: 24px;
	}
}

/* ---------- Presets (low specificity: every style control overrides them) ---------- */
.elementor :where(.aafe-cd--preset-cards) .aafe-countdown__item {
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
}

.elementor :where(.aafe-cd--preset-glass) .aafe-countdown__item {
	background: rgba(255, 255, 255, .55);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, .7);
	box-shadow: 0 10px 30px rgba(31, 38, 135, .1);
}

.elementor :where(.aafe-cd--preset-minimal) .aafe-countdown__item {
	min-width: 0;
	padding: 0;
	background: transparent;
}

/* Flip clock */
.elementor :where(.aafe-cd--preset-flip) .aafe-countdown__item {
	padding: 0;
	background: transparent;
}

.elementor :where(.aafe-cd--preset-flip) .aafe-countdown__box {
	padding: .25em .35em;
	background: linear-gradient(180deg, #1e293b 0%, #1e293b 50%, #0f172a 50%, #0f172a 100%);
	border-radius: 10px;
	box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
	perspective: 400px;
}

.elementor .aafe-cd--preset-flip .aafe-countdown__box::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: rgba(0, 0, 0, .55);
	pointer-events: none;
}

.elementor :where(.aafe-cd--preset-flip) .aafe-countdown__value {
	color: #f8fafc;
}

/* Circle with progress ring */
.elementor .aafe-cd--preset-circle .aafe-countdown__item {
	min-width: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
}

.elementor .aafe-cd--preset-circle .aafe-countdown__box {
	width: var(--aafe-cd-circle);
	height: var(--aafe-cd-circle);
	border-radius: 50%;
}

.elementor .aafe-cd--preset-circle .aafe-countdown__value {
	font-size: calc(var(--aafe-cd-circle) * .32);
}

.elementor .aafe-countdown__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
	overflow: visible;
}

.elementor .aafe-countdown__ring circle {
	fill: none;
	stroke-width: var(--aafe-cd-ring-w);
}

.elementor .aafe-countdown__ring-track {
	stroke: var(--aafe-cd-track);
}

.elementor .aafe-countdown__ring-bar {
	stroke: var(--aafe-cd-ring);
	stroke-linecap: round;
	stroke-dasharray: 100 100;
	stroke-dashoffset: 0;
	transition: stroke-dashoffset .9s linear;
}

/* ---------- Digit animations ---------- */
.elementor .aafe-countdown__digit.is-enter,
.elementor .aafe-countdown__digit.is-leave {
	animation-duration: .45s;
	animation-timing-function: cubic-bezier(.16, 1, .3, 1);
	animation-fill-mode: both;
}

.elementor .aafe-cd--anim-slide_down .aafe-countdown__digit.is-enter { animation-name: aafe-cd-in-down; }
.elementor .aafe-cd--anim-slide_down .aafe-countdown__digit.is-leave { animation-name: aafe-cd-out-down; }
.elementor .aafe-cd--anim-slide_up .aafe-countdown__digit.is-enter { animation-name: aafe-cd-in-up; }
.elementor .aafe-cd--anim-slide_up .aafe-countdown__digit.is-leave { animation-name: aafe-cd-out-up; }
.elementor .aafe-cd--anim-fade .aafe-countdown__digit.is-enter { animation-name: aafe-cd-fade-in; }
.elementor .aafe-cd--anim-fade .aafe-countdown__digit.is-leave { animation-name: aafe-cd-fade-out; }
.elementor .aafe-cd--anim-zoom .aafe-countdown__digit.is-enter { animation-name: aafe-cd-zoom-in; }
.elementor .aafe-cd--anim-zoom .aafe-countdown__digit.is-leave { animation-name: aafe-cd-fade-out; animation-duration: .2s; }
.elementor .aafe-cd--anim-flip .aafe-countdown__digit.is-enter { animation-name: aafe-cd-flip-in; transform-origin: 50% 0; }
.elementor .aafe-cd--anim-flip .aafe-countdown__digit.is-leave { animation-name: aafe-cd-flip-out; transform-origin: 50% 100%; }
.elementor .aafe-cd--anim-pulse .aafe-countdown__value.is-pulse { animation: aafe-cd-pulse .45s ease; }

@keyframes aafe-cd-in-down { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aafe-cd-out-down { from { transform: none; opacity: 1; } to { transform: translateY(100%); opacity: 0; } }
@keyframes aafe-cd-in-up { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aafe-cd-out-up { from { transform: none; opacity: 1; } to { transform: translateY(-100%); opacity: 0; } }
@keyframes aafe-cd-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes aafe-cd-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes aafe-cd-zoom-in { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } to { transform: none; opacity: 1; } }
@keyframes aafe-cd-flip-in { from { transform: rotateX(-90deg); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes aafe-cd-flip-out { from { transform: none; opacity: 1; } to { transform: rotateX(90deg); opacity: .3; } }
@keyframes aafe-cd-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- Expired states ---------- */
.elementor .aafe-cd.is-timer-hidden .aafe-countdown {
	display: none;
}

.elementor .aafe-cd.is-hiding .aafe-countdown {
	opacity: 0;
	transform: scale(.96);
	transition: opacity .4s ease, transform .4s ease;
}

.elementor .aafe-countdown__expire-message {
	width: 100%;
	padding: 16px 20px;
	text-align: var(--aafe-cd-text-align);
	border-radius: 12px;
	box-sizing: border-box;
	animation: aafe-cd-fade-in .4s ease;
}

.elementor .aafe-countdown__expire-message > :last-child {
	margin-bottom: 0;
}

.elementor .aafe-countdown__expire-message[hidden],
.elementor .aafe-countdown__expire-template[hidden] {
	display: none;
}

.elementor .aafe-countdown__expire-template {
	width: 100%;
}

.elementor .aafe-countdown__notice {
	margin: 0;
}

.elementor .aafe-countdown__sr.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.elementor .aafe-countdown__digit,
	.elementor .aafe-countdown__value,
	.elementor .aafe-countdown__separator,
	.elementor .aafe-countdown__ring-bar {
		animation: none !important;
		transition: none !important;
	}
}
