.opoapp-app-popup {
	--opoapp-popup-brand-light: #ffc4da;
	--opoapp-popup-brand-dark: #a83a65;
	--opoapp-popup-ink: #111111;
	--opoapp-popup-soft-ink: rgba(17, 17, 17, 0.78);
	--opoapp-popup-line: rgba(168, 58, 101, 0.16);
	--opoapp-popup-shadow: 0 32px 70px rgba(43, 14, 27, 0.3);
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background:
		radial-gradient(circle at top left, rgba(255, 196, 218, 0.16), transparent 34%),
		radial-gradient(circle at bottom right, rgba(168, 58, 101, 0.34), transparent 34%),
		rgba(16, 12, 15, 0.74);
	backdrop-filter: blur(10px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.26s ease, visibility 0.26s ease;
	z-index: 999999;
}

body.opoapp-app-popup-open {
	overflow: hidden;
}

.opoapp-app-popup.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.opoapp-app-popup__dialog {
	position: relative;
	width: min(940px, 100%);
}

.opoapp-app-popup__panel {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.7fr);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 24px;
	background: linear-gradient(135deg, #f0ccd9 0%, #eab8cb 52%, #df9db7 100%);
	box-shadow: var(--opoapp-popup-shadow);
}

.opoapp-app-popup__content,
.opoapp-app-popup__qr-column {
	position: relative;
}

.opoapp-app-popup__content {
	padding: 44px 42px 40px;
}

.opoapp-app-popup__eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid rgba(168, 58, 101, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.42);
	color: var(--opoapp-popup-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.opoapp-app-popup__brand {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
}

.opoapp-app-popup__brand img {
	width: 70px;
	height: 70px;
	border-radius: 18px;
	box-shadow: 0 14px 30px rgba(168, 58, 101, 0.18);
}

.opoapp-app-popup__brand-copy {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.opoapp-app-popup__brand-copy strong {
	color: var(--opoapp-popup-ink);
	font-size: 25px;
	font-weight: 800;
	line-height: 1.05;
}

.opoapp-app-popup__brand-copy span {
	color: var(--opoapp-popup-soft-ink);
	font-size: 15px;
	line-height: 1.45;
}

.opoapp-app-popup__content h2 {
	max-width: 560px;
	margin: 22px 0 14px;
	color: var(--opoapp-popup-ink);
	font-size: clamp(30px, 4vw, 42px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.opoapp-app-popup__description {
	max-width: 570px;
	margin: 0;
	color: var(--opoapp-popup-soft-ink);
	font-size: 17px;
	line-height: 1.72;
}

.opoapp-app-popup__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin-top: 30px;
}

.opoapp-app-popup a,
.opoapp-app-popup a:visited,
.opoapp-app-popup a:hover,
.opoapp-app-popup a:focus,
.opoapp-app-popup a:active {
	text-decoration: none;
}

.opoapp-app-popup__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 238px;
	padding: 15px 24px;
	border-radius: 14px;
	border: 1px solid rgba(17, 17, 17, 0.12);
	background: #ffffff;
	color: #111111;
	font-size: 16px;
	font-weight: 800;
	box-shadow: 0 14px 28px rgba(17, 17, 17, 0.12);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.opoapp-app-popup__button:hover,
.opoapp-app-popup__button:focus-visible,
.opoapp-app-popup__button:active,
.opoapp-app-popup__button:visited {
	color: #111111;
	background: #fff7fa;
	border-color: rgba(168, 58, 101, 0.22);
	transform: translateY(-2px);
	box-shadow: 0 20px 36px rgba(168, 58, 101, 0.16);
}

.opoapp-app-popup__button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

.opoapp-app-popup__button-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.opoapp-app-popup__helper {
	max-width: 520px;
	margin: 0;
	color: rgba(17, 17, 17, 0.66);
	font-size: 14px;
	line-height: 1.65;
}

.opoapp-app-popup__qr-column {
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 26px;
	background: linear-gradient(180deg, #a83a65 0%, #8d3154 100%);
}

.opoapp-app-popup__qr-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	padding: 8px;
}

.opoapp-app-popup__qr-eyebrow {
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.opoapp-app-popup__qr-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	text-align: center;
	backdrop-filter: blur(6px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.opoapp-app-popup__qr-card:visited,
.opoapp-app-popup__qr-card:hover,
.opoapp-app-popup__qr-card:focus,
.opoapp-app-popup__qr-card:active {
	color: #ffffff;
}

.opoapp-app-popup__qr-frame {
	width: 100%;
	max-width: 292px;
	padding: 16px;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.opoapp-app-popup__qr-frame img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.opoapp-app-popup__qr-card strong {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
}

.opoapp-app-popup__qr-card span {
	color: rgba(255, 255, 255, 0.86);
	font-size: 14px;
	line-height: 1.6;
}

.opoapp-app-popup__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	color: rgba(17, 17, 17, 0.72);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(30, 26, 36, 0.12);
	transition: transform 0.18s ease, background 0.18s ease;
	z-index: 2;
}

.opoapp-app-popup__close:hover,
.opoapp-app-popup__close:focus-visible {
	background: #ffffff;
	transform: scale(1.03);
}

.opoapp-app-popup__button:focus-visible,
.opoapp-app-popup__close:focus-visible,
.opoapp-app-popup__qr-card:focus-visible {
	outline: 3px solid rgba(17, 17, 17, 0.18);
	outline-offset: 3px;
}

@media (max-width: 860px) {
	.opoapp-app-popup {
		padding: 18px;
	}

	.opoapp-app-popup__panel {
		grid-template-columns: 1fr;
	}

	.opoapp-app-popup__content {
		padding: 34px 24px 28px;
	}

	.opoapp-app-popup__qr-column {
		display: none;
	}

	.opoapp-app-popup__content h2 {
		font-size: clamp(28px, 8.8vw, 38px);
	}
}

@media (max-width: 560px) {
	.opoapp-app-popup__brand {
		align-items: flex-start;
	}

	.opoapp-app-popup__brand img {
		width: 58px;
		height: 58px;
		border-radius: 16px;
	}

	.opoapp-app-popup__brand-copy strong {
		font-size: 22px;
	}

	.opoapp-app-popup__description {
		font-size: 16px;
		line-height: 1.66;
	}

	.opoapp-app-popup__button {
		width: 100%;
		min-width: 0;
	}

	.opoapp-app-popup__close {
		top: 12px;
		right: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.opoapp-app-popup,
	.opoapp-app-popup__button,
	.opoapp-app-popup__close {
		transition: none;
	}
}
