/* Site-wide activity popup. The close control itself is injected by theme.js. */
.amber-current-event {
	position: fixed;
	right: max(1.25rem, env(safe-area-inset-right));
	bottom: max(1.25rem, env(safe-area-inset-bottom));
	z-index: 999;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	width: min(340px, calc(100vw - 2.5rem));
	max-height: calc(100vh - 2.5rem);
	max-height: calc(100dvh - 2.5rem);
	background: #fff;
	border: 1px solid rgb(0 0 0 / 7%);
	border-radius: 12px;
	box-shadow: 0 18px 50px rgb(0 0 0 / 24%);
}

.amber-current-event--global {
	visibility: hidden;
	opacity: 0;
}

html.amber-global-popup-ready .amber-current-event--global {
	visibility: visible;
	opacity: 1;
}

.amber-current-event__media,
.amber-current-event__media img {
	display: block;
	width: 100%;
}

.amber-current-event__media {
	flex: 0 0 auto;
	line-height: 0;
}

.amber-current-event__media img {
	height: 150px;
	object-fit: cover;
}

.amber-current-event__body {
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1rem 1.15rem 1.15rem;
}

.amber-current-event__eyebrow {
	margin: 0 0 0.35rem;
	color: #b6151d;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.amber-current-event h2 {
	margin: 0 0 0.5rem;
	font-size: 1.02rem;
	line-height: 1.45;
}

.amber-current-event__summary {
	margin: 0 0 0.85rem;
	color: #666;
	font-size: 0.82rem;
	line-height: 1.65;
}

a.amber-current-event__button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border-radius: 5px;
	background: linear-gradient(180deg, #d1262e, #a3151a);
	box-shadow: 0 6px 14px rgb(196 18 26 / 25%);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

a.amber-current-event__button:hover,
a.amber-current-event__button:focus-visible {
	background: #8d1015;
	color: #fff;
}

@media (max-width: 640px) {
	.amber-current-event {
		right: max(0.75rem, env(safe-area-inset-right));
		bottom: max(0.75rem, env(safe-area-inset-bottom));
		left: max(0.75rem, env(safe-area-inset-left));
		display: grid;
		grid-template-columns: 86px 1fr;
		width: auto;
		max-height: calc(100vh - 1.5rem);
		max-height: calc(100dvh - 1.5rem);
		border-radius: 10px;
	}

	.amber-current-event__media img {
		height: 100%;
		min-height: 132px;
	}

	.amber-current-event__body {
		padding: 0.75rem 2.8rem 0.75rem 0.8rem;
	}

	.amber-current-event__summary {
		display: none;
	}

	.amber-current-event h2 {
		margin-bottom: 0.55rem;
		font-size: 0.88rem;
	}

	a.amber-current-event__button {
		min-height: 36px;
		font-size: 0.86rem;
	}
}
