/**
 * File: /wp-content/plugins/partmost-cookie-consent/assets/css/service-gate.css
 * Module: PCC Service Gate CSS
 * Version: 1.0.0-alpha12
 *
 * Purpose:
 * - Стили сервисного экрана обязательных технических данных.
 * - Mobile-first, дружелюбный UX для гостей БелПерамовы.
 * - Не влияет на общий cookie banner.
 *
 * Changes in 1.0.0-alpha12:
 * - Кнопка подтверждения стала легче: font-weight 600.
 * - Пока открыт service gate, большой общий cookie-баннер скрыт, чтобы не мешать гостю.
 */

.pcc-service-gate-open {
	overflow: hidden;
}

html.pcc-service-gate-open #pcc-banner {
	display: none !important;
}

.pcc-service-gate[hidden] {
	display: none !important;
}

.pcc-service-gate {
	position: fixed;
	z-index: 1000000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #0f172a;
}

.pcc-service-gate__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 34%),
		radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.16), transparent 36%),
		rgba(15, 23, 42, 0.62);
	backdrop-filter: blur(10px);
}

.pcc-service-gate__dialog {
	position: relative;
	width: min(100%, 560px);
	max-height: calc(100vh - 36px);
	overflow: auto;
	background: #ffffff;
	border: 1px solid rgba(148, 163, 184, 0.28);
	border-radius: 24px;
	padding: 24px;
	box-shadow:
		0 24px 70px rgba(15, 23, 42, 0.3),
		0 1px 0 rgba(255, 255, 255, 0.84) inset;
}

.pcc-service-gate__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding: 7px 11px;
	border-radius: 999px;
	background: #ecfeff;
	color: #0f766e;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}

.pcc-service-gate__badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #14b8a6;
	box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.pcc-service-gate__title {
	margin: 0 0 12px;
	font-size: clamp(24px, 4.8vw, 34px);
	line-height: 1.12;
	letter-spacing: -0.04em;
	font-weight: 900;
	color: #0f172a;
}

.pcc-service-gate__text {
	font-size: 15px;
	line-height: 1.62;
	color: #334155;
}

.pcc-service-gate__text p {
	margin: 0 0 10px;
}

.pcc-service-gate__text p:last-child {
	margin-bottom: 0;
}

.pcc-service-gate__details-toggle {
	margin-top: 16px;
	border: 0;
	padding: 0;
	background: transparent;
	color: #0f766e;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pcc-service-gate__details {
	margin-top: 12px;
	padding: 14px 16px;
	border-radius: 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.pcc-service-gate__details ul {
	margin: 0;
	padding-left: 18px;
	color: #475569;
	font-size: 14px;
	line-height: 1.55;
}

.pcc-service-gate__details li + li {
	margin-top: 6px;
}

.pcc-service-gate__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 22px;
}

.pcc-service-gate__button {
	border: 0;
	border-radius: 14px;
	padding: 13px 18px;
	background: linear-gradient(135deg, #0f766e, #0ea5e9);
	color: #ffffff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 12px 26px rgba(14, 165, 233, 0.24);
}

.pcc-service-gate__button:hover {
	filter: brightness(1.03);
}

.pcc-service-gate__button:focus-visible,
.pcc-service-gate__details-toggle:focus-visible,
.pcc-service-gate__link:focus-visible {
	outline: 3px solid rgba(14, 165, 233, 0.28);
	outline-offset: 3px;
}

.pcc-service-gate__link {
	color: #64748b;
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
}

.pcc-service-gate__link:hover {
	color: #0f172a;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 560px) {
	.pcc-service-gate {
		align-items: flex-end;
		padding: 10px;
	}

	.pcc-service-gate__dialog {
		width: 100%;
		max-height: calc(100vh - 20px);
		border-radius: 22px;
		padding: 20px;
	}

	.pcc-service-gate__actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.pcc-service-gate__button,
	.pcc-service-gate__link {
		width: 100%;
		text-align: center;
	}

	.pcc-service-gate__link {
		padding: 8px 0;
	}
}
