.ecma-cd {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 9990;
	width: 320px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	box-sizing: border-box;
	padding: 20px;
	border: 1px solid rgba(227, 197, 143, .55);
	border-radius: 18px;
	background: rgba(1, 40, 6, .94);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
	color: #fff;
	font-family: Inter, "Noto Sans Ethiopic", "Nyala", system-ui, -apple-system, "Segoe UI", sans-serif;
	text-align: left;
	animation: ecma-cd-in .5s ease both;
}
.ecma-cd[hidden],
.ecma-cd [hidden] { display: none !important; }
.ecma-cd *,
.ecma-cd *::before { box-sizing: border-box; }
.ecma-cd p { margin: 0; padding: 0; }

.ecma-cd button.ecma-cd__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.ecma-cd button.ecma-cd__close:hover { background: rgba(255, 255, 255, .14); }
.ecma-cd button:focus-visible,
.ecma-cd a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.ecma-cd .ecma-cd__heading {
	margin-bottom: 4px;
	padding-right: 32px;
	color: #e3c58f;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ecma-cd .ecma-cd__event {
	margin-bottom: 14px;
	padding-right: 16px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.ecma-cd__timer {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin-bottom: 14px;
}
.ecma-cd__timer > div {
	padding: 8px 2px;
	border-radius: 10px;
	background: #b68e50;
	color: #0d1f0f;
	text-align: center;
}
.ecma-cd__num {
	display: block;
	font-size: 22px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}
.ecma-cd__unit { display: block; font-size: 10px; font-weight: 600; }

.ecma-cd .ecma-cd__live {
	margin-bottom: 14px;
	padding: 10px;
	border-radius: 10px;
	background: #b68e50;
	color: #0d1f0f;
	font-weight: 800;
	text-align: center;
}

.ecma-cd .ecma-cd__meta {
	margin-bottom: 14px;
	color: rgba(255, 255, 255, .82);
	font-size: 13px;
	line-height: 1.5;
}
.ecma-cd__meta span { display: block; }

.ecma-cd a.ecma-cd__btn {
	display: block;
	padding: 11px 16px;
	border-radius: 999px;
	background: #fff;
	color: #004608;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}
.ecma-cd a.ecma-cd__btn:hover { background: #e3c58f; }

/* Phones: a compact card that leaves room for the chat button on the right. */
@media (max-width: 767px) {
	.ecma-cd { left: 10px; bottom: 10px; width: min(300px, 100vw - 100px); padding: 12px; }
	.ecma-cd .ecma-cd__event { margin-bottom: 8px; font-size: 13px; }
	.ecma-cd__timer { margin-bottom: 8px; gap: 4px; }
	.ecma-cd__num { font-size: 16px; }
	.ecma-cd__unit { font-size: 8px; }
	.ecma-cd .ecma-cd__meta { display: none; }
	.ecma-cd a.ecma-cd__btn { padding: 7px 12px; font-size: 12px; }
}

@keyframes ecma-cd-in {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ecma-cd { animation: none; }
}

/* Keeps the left-aligned ECMA Hero text clear of the card on desktop. */
@media (min-width: 1024px) {
	body.has-ecma-cd .ecma-hero__inner { width: auto; max-width: none; margin: 0; padding-left: 380px; padding-right: 48px; }
}
