/**
 * Scroll-triggered welcome bonus popup — overlay chrome only.
 * Inner promo markup/styles come from welcome-bonus.css (unchanged).
 */

.welcome-bonus-popup {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(0.75rem, 3vw, 1.25rem);
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.welcome-bonus-popup.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.welcome-bonus-popup__backdrop {
	position: absolute;
	inset: 0;
	background: var(--lp-color-regional-backdrop, rgba(0, 0, 0, 0.7));
	cursor: pointer;
}

.welcome-bonus-popup__dialog {
	position: relative;
	z-index: 1;
	inline-size: min(35.5rem, 100%);
	max-block-size: min(90vh, 100%);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.welcome-bonus-popup__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.25rem;
	block-size: 2.25rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: var(--lp-color-white);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.welcome-bonus-popup__close:hover,
.welcome-bonus-popup__close:focus-visible {
	background: rgba(0, 0, 0, 0.75);
	color: var(--lp-color-white);
}

.welcome-bonus-popup__close:focus-visible {
	outline: 2px solid var(--lp-color-pink);
	outline-offset: 2px;
}

body.welcome-bonus-popup-open {
	overflow: hidden;
}
