.cpav-gate {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 1;
	transition: opacity 0.35s ease;
}

.cpav-gate.cpav-hide {
	opacity: 0;
	pointer-events: none;
}

.cpav-overlay {
	position: absolute;
	inset: 0;
	background: var(--cpav-overlay, #000);
	opacity: var(--cpav-overlay-opacity, 0.75);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

body.cpav-locked {
	overflow: hidden;
}

.cpav-card {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: var(--cpav-bg, #fff);
	color: var(--cpav-text, #3c3c3c);
	border-radius: 14px;
	padding: 36px 32px 28px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	transform: translateY(0) scale(1);
	animation: cpavPop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cpavPop {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.cpav-logo {
	max-width: 120px;
	max-height: 70px;
	margin: 0 auto 18px;
	display: block;
	object-fit: contain;
}

.cpav-title {
	margin: 0 0 12px;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--cpav-text, #3c3c3c);
}

.cpav-description {
	font-size: 0.95rem;
	line-height: 1.55;
	opacity: 0.85;
	margin-bottom: 24px;
}

.cpav-description p:last-child {
	margin-bottom: 0;
}

.cpav-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 18px;
}

.cpav-btn {
	appearance: none;
	border: 2px solid transparent;
	border-radius: 8px;
	padding: 13px 20px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	line-height: 1.2;
}

.cpav-btn:active {
	transform: scale(0.98);
}

.cpav-btn-yes {
	background: var(--cpav-primary, #ff8736);
	border-color: var(--cpav-primary, #ff8736);
	color: #fff;
}

.cpav-btn-yes:hover,
.cpav-btn-yes:focus {
	filter: brightness(0.92);
}

.cpav-btn-no {
	background: transparent;
	border-color: rgba(0, 0, 0, 0.15);
	color: var(--cpav-text, #3c3c3c);
	opacity: 0.75;
}

.cpav-btn-no:hover,
.cpav-btn-no:focus {
	opacity: 1;
	border-color: rgba(0, 0, 0, 0.3);
}

.cpav-disclaimer {
	font-size: 0.72rem;
	line-height: 1.5;
	opacity: 0.55;
	margin: 0 0 14px;
}

.cpav-links {
	font-size: 0.78rem;
	opacity: 0.7;
}

.cpav-links a {
	color: inherit;
	text-decoration: underline;
}

.cpav-links-sep {
	margin: 0 8px;
	opacity: 0.5;
}

@media screen and (min-width: 480px) {
	.cpav-buttons {
		flex-direction: row;
	}

	.cpav-btn {
		flex: 1;
	}
}

@media screen and (max-width: 479px) {
	.cpav-card {
		padding: 28px 22px 22px;
		border-radius: 12px;
	}

	.cpav-title {
		font-size: 1.3rem;
	}
}
