/*
 * Site Popup Styles
 */

/* Overlay */
.ltp-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.ltp-popup-overlay--visible {
	opacity: 1;
}

/* Backdrop */
.ltp-popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

/* Content */
.ltp-popup-content {
	position: relative;
	width: 90vw;
	max-width: 600px;
	aspect-ratio: 4 / 5;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: 2rem;
}

/* Close button */
.ltp-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	color: #1a1a1a;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ltp-popup-close:hover {
	background: #fff;
	transform: scale(1.1);
}

.ltp-popup-close:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.4);
}

/* CTA button */
.ltp-popup-cta {
	display: inline-block;
	padding: 14px 32px;
	background: var(--global-palette1, #3182ce);
	color: var(--global-palette9, #fff);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: background-color 0.2s ease, transform 0.2s ease;
	text-align: center;
	line-height: 1.2;
}

.ltp-popup-cta:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	color: var(--global-palette9, #fff);
}

.ltp-popup-cta:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 719px) {
	.ltp-popup-content {
		max-width: 92vw;
		aspect-ratio: 3 / 4;
		padding: 1.5rem;
	}

	.ltp-popup-cta {
		padding: 12px 24px;
		font-size: 0.9rem;
	}
}
