.atm-ad-standalone {
	max-inline-size: 75rem;
	margin: 1.5rem auto;
	width: min(100% - 2rem, 75rem);
}

.atm-ad-popup {
	box-sizing: border-box;
	position: fixed;
	inset: 0;
	width: min(36rem, 100% - 2rem);
	max-height: calc(100% - 2rem);
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 0;
	overflow: auto;
	overscroll-behavior: contain;
	border: 0;
	border-radius: 1rem;
	background: #fff;
	color: #151515;
	box-shadow: 0 0.75rem 2.5rem #0005;
}

.atm-ad-popup::backdrop { background: #0009; }
body:has(.atm-ad-popup[open]) { overflow: hidden; }

.atm-ad-popup__close {
	display: block;
	position: sticky;
	top: 0.5rem;
	margin: 0.5rem 0.5rem 0 auto;
	z-index: 1;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	border: 1px solid #6a6a6a;
	border-radius: 100%;
	background: #fff;
	color: #151515;
	font-size: 1.5rem;
	cursor: pointer;
}

.atm-ad-popup__close:focus-visible,
.atm-ad-popup a:focus-visible { outline: 2px solid #b34a10; outline-offset: 2px; }

.atm-ad-popup__content {
	display: grid;
	gap: var(--token-size-6);
	padding: 0 var(--token-size-8) var(--token-size-10);
	overflow-wrap: anywhere;
}

.atm-ad-popup__content img { max-height: 45dvh; height: auto; object-fit: contain; }
.atm-ad-popup__content a { justify-self: start; }

.atm-ad-popup__copy {
	display: grid;
	gap: var(--token-size-3);
}

.atm-ad-popup__title {
	margin: 0;
	color: var(--token-color-neutral-800);
	font-size: var(--token-size-10);
	font-weight: 700;
	line-height: var(--token-size-12);
	letter-spacing: -0.02em;
}

.atm-ad-popup__description {
	margin: 0;
	color: var(--token-color-neutral-bc-600);
	font-size: var(--token-size-6);
	font-weight: 400;
	line-height: var(--token-size-10);
	white-space: pre-line;
}

@media (max-width: 600px) {
	.atm-ad-popup__content {
		padding-inline: var(--token-size-6);
	}

	.atm-ad-popup__title {
		font-size: var(--token-size-8);
		line-height: var(--token-size-10);
	}
}
