/* Full Page Print — frontend modal (choice + progress) */

#fpp-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 15, 18, 0.62);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.22s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #1a1a1a;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	pointer-events: all;
}

#fpp-overlay.is-visible { opacity: 1; }

#fpp-overlay .fpp-modal {
	box-sizing: border-box;
	position: relative;
	width: 100%;
	max-width: 460px;
	margin: 0 20px;
	background: #fff;
	color: #1a1a1a;
	border-radius: 14px;
	padding: 26px 26px 22px;
	box-shadow:
		0 30px 80px rgba(0, 0, 0, 0.32),
		0 2px 8px rgba(0, 0, 0, 0.08);
	transform: translateY(10px);
	transition: transform 0.22s ease;
	text-align: left;
}

#fpp-overlay.is-visible .fpp-modal { transform: translateY(0); }

/* Close button (choice view only) */
#fpp-overlay .fpp-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 30px;
	height: 30px;
	display: inline-grid;
	place-items: center;
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: #6b6b6b;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease, color 0.15s ease;
}
#fpp-overlay .fpp-close:hover { background: #f1f1f1; color: #1a1a1a; }
#fpp-overlay .fpp-close:focus-visible {
	outline: 2px solid #c2410c;
	outline-offset: 1px;
}
#fpp-overlay .fpp-close svg { width: 16px; height: 16px; }

/* ===== CHOICE VIEW ===== */

#fpp-overlay .fpp-view-choice .fpp-h {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.25;
}
#fpp-overlay .fpp-sub {
	margin: 0 0 16px;
	font-size: 13px;
	color: #5a5a5a;
}

#fpp-overlay .fpp-choices {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 14px;
}

#fpp-overlay .fpp-choice {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	text-align: left;
	background: #fafafa;
	border: 1.5px solid #ececec;
	border-radius: 10px;
	padding: 14px 14px 14px 16px;
	font: inherit;
	color: inherit;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
#fpp-overlay .fpp-choice:hover {
	background: #fff7f1;
	border-color: #fdba74;
}
#fpp-overlay .fpp-choice:focus {
	outline: none;
	border-color: #c2410c;
	background: #fff7f1;
	box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.16);
}
#fpp-overlay .fpp-choice:active { transform: translateY(1px); }

#fpp-overlay .fpp-choice-icon {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #ececec;
	color: #c2410c;
}
#fpp-overlay .fpp-choice-icon svg { width: 22px; height: 22px; }

#fpp-overlay .fpp-choice-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
#fpp-overlay .fpp-choice-title {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.25;
}
#fpp-overlay .fpp-choice-desc {
	font-size: 12px;
	color: #6b6b6b;
	line-height: 1.4;
}

#fpp-overlay .fpp-kbd {
	flex-shrink: 0;
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 22px;
	padding: 0 6px;
	font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", monospace;
	color: #4a4a4a;
	background: #fff;
	border: 1px solid #d8d8d8;
	border-bottom-width: 2px;
	border-radius: 5px;
}

#fpp-overlay .fpp-hint {
	margin: 4px 0 0;
	font-size: 11.5px;
	color: #8a8a8a;
	text-align: center;
}

/* ===== PROGRESS VIEW ===== */

#fpp-overlay .fpp-modal-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
}

#fpp-overlay .fpp-spinner {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border: 2.5px solid rgba(26, 24, 20, 0.16);
	border-top-color: #c2410c;
	border-radius: 50%;
	animation: fpp-spin 0.85s linear infinite;
}

#fpp-overlay .fpp-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.005em;
	line-height: 1.25;
}

#fpp-overlay .fpp-status {
	margin: 0 0 12px;
	font-size: 13.5px;
	color: #4a4a4a;
	min-height: 1.4em;
}

#fpp-overlay .fpp-progress {
	width: 100%;
	height: 6px;
	background: #ececec;
	border-radius: 99px;
	overflow: hidden;
	margin: 0 0 14px;
}
#fpp-overlay .fpp-progress-bar {
	width: 0%;
	height: 100%;
	background: linear-gradient(90deg, #c2410c, #ea580c);
	border-radius: 99px;
	transition: width 0.25s ease;
}

#fpp-overlay .fpp-hint-progress {
	margin: 0;
	font-size: 11.5px;
	color: #7a7a7a;
	line-height: 1.45;
}

/* Error state */
#fpp-overlay.is-error .fpp-spinner {
	animation: none;
	border-top-color: #dc2626;
	border-color: rgba(220, 38, 38, 0.25);
}
#fpp-overlay.is-error .fpp-progress-bar {
	background: #dc2626;
	width: 100% !important;
}

@keyframes fpp-spin {
	to { transform: rotate(360deg); }
}

html.fpp-capturing { scroll-behavior: auto !important; }

@media print {
	#fpp-overlay { display: none !important; }
}
