/**
 * PX FAQ Popup - Modal styles
 *
 * Opens FAQ answers in a full-screen popup (same visual language as px-video-popup)
 * instead of expanding inline. Only active for accordions inside
 * .px-cta-banner__left (white card panel).
 *
 * Reuses: px-popup-in keyframes from px-video-popup.css.
 * Globally enqueued via CSS glob.
 */


/* ── Popup overlay ───────────────────────────── */

.px-faq-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-d2);
}

.px-faq-popup[hidden] {
	display: none;
}


/* ── Backdrop (same as video popup) ──────────── */

.px-faq-popup__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(16, 80, 112, 0.85);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}


/* ── Dialog ──────────────────────────────────── */

.px-faq-popup__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 720px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--space-d075);
	animation: px-popup-in var(--duration-normal) var(--ease-smooth) both;
}


/* ── Close button (same as video popup) ──────── */

.px-faq-popup__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: none;
	color: var(--white);
	cursor: pointer;
	transition: background-color var(--duration-fast) var(--ease-smooth);
}

.px-faq-popup__close:hover {
	background-color: rgba(255, 255, 255, 0.15);
}

.px-faq-popup__close:focus-visible {
	outline: solid 3px var(--white);
	outline-offset: 2px;
}

.px-faq-popup__close svg {
	width: 24px;
	height: 24px;
}


/* ── Content area ────────────────────────────── */

.px-faq-popup__content {
	width: 100%;
	background: var(--white);
	padding: var(--space-d2);
	max-height: 70vh;
	height: fit-content;
	overflow-y: auto;
}

.px-faq-popup__content::-webkit-scrollbar {
	width: 4px;
}

.px-faq-popup__content::-webkit-scrollbar-track {
	background: transparent;
}

.px-faq-popup__content::-webkit-scrollbar-thumb {
	background: var(--sand);
	border-radius: 4px;
}


/* ── Title ───────────────────────────────────── */

/* No divider bar — just plain heading text */
.px-faq-popup__title {
	font-family: var(--font-display);
	font-size: var(--text-d125);
	font-weight: var(--weight-semibold);
	line-height: var(--lh-snug);
	letter-spacing: var(--ls-tight);
	color: var(--text-base);
	margin-bottom: var(--space-d1);
}

.px-faq-popup__title::before {
	display: none;
}


/* ── Answer text ─────────────────────────────── */

.px-faq-popup__answer {
	font-family: var(--font-body);
	font-size: var(--text-body);
	line-height: var(--lh-relaxed);
	color: var(--text-base);
}

.px-faq-popup__answer p {
	margin: 0 0 var(--space-d05) 0;
}

.px-faq-popup__answer p:last-child {
	margin-bottom: 0;
}

.px-faq-popup__answer ul,
.px-faq-popup__answer ol {
	margin: 0;
	padding-left: 1.5em;
}

.px-faq-popup__answer li {
	margin-bottom: 0.25em;
}



/* ── Navigation (prev/next) ──────────────────── */

.px-faq-popup__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-d1);
	margin-top: var(--space-d075);
	padding-top: var(--space-d05);
	border-top: 1px solid var(--sand-light);
}

.px-faq-popup__nav-btn {
	font-family: var(--font-display);
	font-size: var(--text-body);
	font-weight: var(--weight-medium);
	line-height: var(--lh-normal);
	color: var(--gray-dark);
	text-decoration: underline;
	text-underline-offset: 0.15em;

	display: inline-flex;
	align-items: center;
	gap: var(--space-d025);

	padding: var(--space-d025) 0;

	background: none;
	border-radius: var(--radius-xs);
	border: none;
	cursor: pointer;

	transition: color var(--duration-normal) var(--ease-smooth);
}

.px-faq-popup__nav-btn svg {
	width: var(--space-d1);
	height: var(--space-d1);
	flex-shrink: 0;
	fill: currentColor;
}

.px-faq-popup__nav-btn:hover {
	color: var(--action);
	text-decoration: none;
}

.px-faq-popup__nav-btn:focus-visible {
	color: var(--action);
	text-decoration: none;
	outline: 3px solid var(--btn-focus-ring);
	outline-offset: 2px;
}

.px-faq-popup__nav-btn:disabled {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

.px-faq-popup__nav-indicator {
	font-family: var(--font-display);
	font-size: 0.8rem;
	font-weight: var(--weight-medium);
	color: var(--text-base);
}


/* ── Responsive ──────────────────────────────── */

@media (max-width: 767px) {
	.px-faq-popup {
		padding: var(--space-d1);
	}
}
