.upa-popup[hidden] {
	display: none !important;
}

body.upa-popup-open {
	overflow: hidden;
}

.upa-popup,
.upa-backdrop {
	position: fixed;
	inset: 0;
}

.upa-popup {
	z-index: 999999;
}

.upa-backdrop {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 24px;
	background: rgba(15, 18, 28, 0.68);
	overflow-x: hidden;
	overflow-y: auto;
}

.upa-dialog {
	position: relative;
	box-sizing: border-box;
	width: min(100%, var(--upa-width, 560px));
	max-height: calc(100vh - 48px);
	margin: auto;
	border-radius: 8px;
	background: #fff;
	color: #202333;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.upa-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: #242735;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
}

.upa-close:hover,
.upa-close:focus {
	background: #f1f3f7;
	color: #11131a;
}

.upa-close:focus-visible,
.upa-action:focus-visible {
	outline: 3px solid #254cff;
	outline-offset: 3px;
}

.upa-image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.upa-click-area,
.upa-click-area:hover,
.upa-click-area:focus {
	display: block;
	color: inherit;
	text-decoration: none;
}

.upa-click-area:focus-visible {
	outline: 3px solid #254cff;
	outline-offset: -3px;
}

.upa-inner {
	box-sizing: border-box;
	padding: 32px;
	text-align: center;
}

.upa-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 48px;
	margin: 0;
	padding: 12px 24px;
	border: 0;
	border-radius: 3px;
	background: #3158ff;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.upa-action:hover,
.upa-action:focus {
	background: #2448e8;
	color: #fff;
	text-decoration: none;
}

@media (max-width: 600px) {
	.upa-backdrop {
		align-items: flex-end;
		padding: 12px;
	}

	.upa-dialog {
		max-height: calc(100vh - 24px);
		border-radius: 8px;
	}

	.upa-inner {
		padding: 26px 22px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.upa-dialog {
		animation: upa-enter 180ms ease-out;
	}
}

@keyframes upa-enter {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
