/* AIO Sales popups */
.aio-popup[hidden] { display: none !important; }

.aio-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	pointer-events: none;
}
.aio-popup--bottom-right { align-items: flex-end; justify-content: flex-end; }
.aio-popup--bottom-left { align-items: flex-end; justify-content: flex-start; }
.aio-popup--top-bar { align-items: flex-start; padding: 0; }

.aio-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, .55);
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: auto;
}
.aio-popup.is-open .aio-popup__overlay { opacity: 1; }

.aio-popup__box {
	position: relative;
	pointer-events: auto;
	width: min(440px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	color: #111827;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	text-align: center;
	opacity: 0;
	transform: translateY(12px) scale(.98);
	transition: opacity .2s ease, transform .2s ease;
	outline: none;
}
.aio-popup.is-open .aio-popup__box { opacity: 1; transform: none; }

.aio-popup--bottom-right .aio-popup__box,
.aio-popup--bottom-left .aio-popup__box { width: min(340px, 100%); }

.aio-popup--top-bar .aio-popup__box {
	width: 100%;
	max-height: none;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 10px 48px;
	transform: translateY(-100%);
}
.aio-popup--top-bar .aio-popup__img { display: none; }
.aio-popup--top-bar .aio-popup__body { display: flex; align-items: center; gap: 16px; padding: 0; flex-wrap: wrap; justify-content: center; }
.aio-popup--top-bar .aio-popup__title { font-size: 16px; margin: 0; }
.aio-popup--top-bar .aio-popup__text p { margin: 0; }
.aio-popup--top-bar .aio-popup__button { margin: 0; padding: 6px 14px; }

.aio-popup__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px 16px 0 0;
}
.aio-popup__body { padding: 20px 24px 24px; }
.aio-popup__title { margin: 0 0 8px; font-size: 22px; line-height: 1.25; color: inherit; }
.aio-popup__text { font-size: 15px; line-height: 1.5; }
.aio-popup__text p { margin: 0 0 8px; }

.aio-popup__button {
	--aio-bg: #e11d48;
	--aio-fg: #fff;
	display: inline-block;
	margin-top: 12px;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--aio-bg);
	color: var(--aio-fg) !important;
	font-weight: 700;
	text-decoration: none !important;
}
.aio-popup__button:hover,
.aio-popup__button:focus-visible { filter: brightness(1.08); }

.aio-popup__close {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: #111827;
	font-size: 22px;
	line-height: 32px;
	cursor: pointer;
	z-index: 1;
}
.aio-popup__close:focus-visible { outline: 2px solid #2563eb; }

html.aio-popup-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.aio-popup__box, .aio-popup__overlay { transition: none; }
}
