@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.ehct-bar {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 20px;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	animation: ehct-slide-down 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes ehct-slide-down {
	from { opacity: 0; transform: translateY(-10px); }
	to   { opacity: 1; transform: translateY(0); }
}
.ehct-bar.ehct-closing {
	animation: ehct-slide-up 0.28s cubic-bezier(0.55, 0, 1, 0.45) forwards;
	overflow: hidden;
}
@keyframes ehct-slide-up {
	from { opacity: 1; transform: translateY(0); max-height: 200px; padding-top: 18px; padding-bottom: 18px; }
	to   { opacity: 0; transform: translateY(-8px); max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; }
}

.ehct-bar-bg {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	z-index: 0; pointer-events: none;
}
.ehct-bar-inner {
	position: relative; z-index: 2;
	display: flex; align-items: center; justify-content: space-between;
	gap: 18px; flex-wrap: wrap; padding: 18px 22px;
}

/* Left */
.ehct-bar-left {
	display: flex; align-items: center; gap: 16px;
	min-width: 220px; flex: 1 1 380px;
}
.ehct-bar-icon {
	width: 44px; height: 44px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	font-size: 20px; flex-shrink: 0;
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ehct-bar-text { display: flex; flex-direction: column; gap: 3px; }
.ehct-bar-heading {
	font-size: clamp(17px, 2.4vw, 28px);
	font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
}
.ehct-bar-subtitle { font-size: 14px; font-weight: 500; opacity: 0.82; line-height: 1.35; }

/* Right */
.ehct-bar-right {
	display: flex; align-items: center; justify-content: flex-end;
	gap: 8px; flex: 1 1 320px; flex-wrap: wrap;
}

/* Pills */
.ehct-pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 16px; border-radius: 999px;
	font-size: 14px; font-weight: 700; white-space: nowrap;
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,0.15); line-height: 1.2;
	letter-spacing: -0.01em;
}
.ehct-pill-countdown { gap: 5px; }
.ehct-cd-label { opacity: 0.85; font-weight: 600; }

/* Countdown digits */
.ehct-countdown {
	display: inline-flex; align-items: baseline; gap: 1px;
	font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: 0.01em;
}
.ehct-cd-days, .ehct-cd-hours, .ehct-cd-mins, .ehct-cd-secs {
	font-weight: 800; min-width: 1.6ch; display: inline-block; text-align: center;
}
.ehct-cd-sep { font-size: 0.72em; font-weight: 600; opacity: 0.6; margin: 0 1px; }
.ehct-countdown.ehct-expired { opacity: 0.4; }

/* Urgency pulse when ≤60s */
@keyframes ehct-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.65; }
}
.ehct-pill-countdown.ehct-urgent {
	animation: ehct-pulse 1s ease-in-out infinite;
}

/* Expired message */
.ehct-expired-pill { font-style: italic; opacity: 0.8; }

/* CTA Button */
.ehct-cta-btn {
	display: inline-flex; align-items: center;
	padding: 9px 18px; border-radius: 999px;
	font-size: 14px; font-weight: 700; white-space: nowrap;
	border: 2px solid currentColor;
	text-decoration: none; line-height: 1.2;
	transition: background 0.15s, color 0.15s;
	letter-spacing: -0.01em;
}
.ehct-cta-btn:hover {
	background: rgba(255,255,255,0.2);
	text-decoration: none;
}

/* Close button */
.ehct-bar-close {
	background: none; border: none; cursor: pointer;
	padding: 6px; display: flex; align-items: center; justify-content: center;
	border-radius: 50%; opacity: 0.55; flex-shrink: 0; margin-left: 2px;
	transition: opacity 0.15s, background 0.15s;
}
.ehct-bar-close:hover { opacity: 1; background: rgba(255,255,255,0.15); }

/* Responsive */
@media (max-width: 768px) {
	.ehct-bar { border-radius: 14px; }
	.ehct-bar-inner { padding: 14px 16px; gap: 10px; }
	.ehct-bar-left { min-width: 0; flex: 1 1 100%; }
	.ehct-bar-right { flex: 1 1 100%; justify-content: flex-start; }
	.ehct-bar-heading { font-size: clamp(15px, 4vw, 21px); }
	.ehct-pill { padding: 7px 12px; font-size: 13px; }
	.ehct-cta-btn { padding: 7px 14px; font-size: 13px; }
}
@media (max-width: 480px) {
	.ehct-bar-icon { width: 36px; height: 36px; font-size: 17px; }
	.ehct-bar-subtitle { font-size: 13px; }
	.ehct-pill { padding: 6px 10px; font-size: 12px; }
	.ehct-cd-sep { margin: 0; }
}
