/* Empty slots take no space and stay invisible until a creative is inserted. */
.ew-geo-slot,
.ew-geo-slot[hidden] {
	display: none !important;
	margin: 0;
	padding: 0;
	border: none;
	min-height: 0;
	height: 0;
	overflow: hidden;
	background: transparent;
}
.ew-geo-slot.is-filled {
	display: block !important;
	height: auto;
	overflow: visible;
	margin: 16px auto;
	padding: 0;
	text-align: center;
	max-width: 100%;
}
.ew-geo-slot.is-filled[hidden] {
	display: block !important;
}
.ew-geo-slot.is-filled a,
.ew-geo-slot.is-filled img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	border: 0;
	vertical-align: middle;
}

.ew-geo-slot--top.is-filled,
.ew-geo-slot--bottom.is-filled {
	max-width: 970px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
}
.ew-geo-slot--mid.is-filled {
	max-width: 728px;
	margin: 24px auto;
}
.ew-geo-slot--sidebar.is-filled {
	max-width: 300px;
	margin: 16px auto;
}

/* Keep a filled sidebar in the existing 25% column when the JS has parked it there. */
.ew-geo-slot--sidebar.is-in-aside.is-filled {
	margin-top: 8px;
	margin-bottom: 16px;
}

/* Override enhancements CSS that hid .ew-ad-slot--sidebar on mobile. */
@media (max-width: 781px) {
	.ew-geo-slot--sidebar.is-filled,
	.ew-geo-slot--sidebar.is-inline.is-filled,
	.ew-ad-slot--sidebar.ew-geo-slot.is-filled {
		display: block !important;
		max-width: 300px;
		margin: 24px auto;
	}
	.ew-geo-slot--top.is-filled,
	.ew-geo-slot--bottom.is-filled {
		max-width: 100%;
	}
}

/* Popup — shown only when filled; once per session, close after 6s. */
.ew-geo-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
}
.ew-geo-popup.is-open {
	display: flex;
}
.ew-geo-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 42, 95, 0.45);
}
.ew-geo-popup__box {
	position: relative;
	z-index: 1;
	background: #fff;
	padding: 28px 20px 16px;
	border-radius: 8px;
	box-shadow: 0 16px 48px rgba(15, 42, 95, 0.28);
	max-width: min(92vw, 420px);
	text-align: center;
}
.ew-geo-popup__close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #0F2A5F;
	opacity: 0;
	pointer-events: none;
}
.ew-geo-popup__close.is-ready {
	opacity: 1;
	pointer-events: auto;
}
.ew-geo-popup__box img {
	max-width: 100%;
	height: auto;
}

@media (prefers-reduced-motion: reduce) {
	.ew-geo-popup__backdrop,
	.ew-geo-popup__box {
		transition: none;
	}
}
