/* ==========================================================================
   Уведомление о cookie
   ========================================================================== */

.gpc-cookie {
	position: fixed;
	bottom: 18px;
	left: 50%;
	z-index: 95;
	width: min(1060px, calc(100vw - 28px));
	transform: translateX(-50%);
}

.gpc-cookie__card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	border: 1px solid var(--gpc-border);
	border-radius: 20px;
	background: var(--gpc-surface);
	box-shadow: 0 26px 70px -28px rgba(10, 43, 69, 0.55);
}

.gpc-cookie__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border-radius: 13px;
	background: var(--gpc-mint);
	color: var(--gpc-teal);
}

.gpc-cookie__body {
	min-width: 0;
	flex: 1;
}

.gpc-cookie__title {
	margin: 0 0 2px;
	color: var(--gpc-heading);
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.3;
}

.gpc-cookie__text {
	margin: 0;
	color: var(--gpc-muted);
	font-size: 0.76rem;
	line-height: 1.5;
}

.gpc-cookie__text a {
	color: var(--gpc-teal);
	font-weight: 700;
}

.gpc-cookie__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	flex: 0 0 auto;
}

.gpc-cookie__settings {
	padding: 4px 2px;
	border: 0;
	background: none;
	color: var(--gpc-muted);
	font-size: 0.72rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.16em;
	cursor: pointer;
}

.gpc-cookie__settings:hover {
	color: var(--gpc-teal);
}

/* Окно настроек */

.gpc-cookie-dialog {
	width: min(560px, calc(100vw - 24px));
	max-width: 560px;
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: var(--gpc-surface);
	color: var(--gpc-text);
	box-shadow: 0 30px 90px -30px rgba(10, 43, 69, 0.6);
}

.gpc-cookie-dialog::backdrop {
	background: rgba(8, 32, 51, 0.58);
	backdrop-filter: blur(2px);
}

.gpc-cookie-dialog__inner {
	padding: clamp(20px, 4vw, 28px);
}

.gpc-cookie-dialog__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 8px;
}

.gpc-cookie-dialog__head h2 {
	margin: 0;
	font-size: 1.3rem;
	line-height: 1.2;
}

.gpc-cookie-dialog__lead {
	margin: 0 0 10px;
	color: var(--gpc-muted);
	font-size: 0.8rem;
	line-height: 1.5;
}

.gpc-consent-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--gpc-border);
	cursor: pointer;
}

.gpc-consent-row__text {
	min-width: 0;
	flex: 1;
}

.gpc-consent-row__text strong {
	display: block;
	margin-bottom: 2px;
	font-size: 0.86rem;
	font-weight: 800;
}

.gpc-consent-row__text span {
	display: block;
	color: var(--gpc-muted);
	font-size: 0.76rem;
	line-height: 1.45;
}

.gpc-consent-row input[type="checkbox"] {
	width: 21px;
	height: 21px;
	flex: 0 0 21px;
	margin-top: 2px;
	accent-color: var(--gpc-coral);
	cursor: pointer;
}

.gpc-cookie-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.gpc-cookie-dialog__policy {
	margin: 14px 0 0;
	font-size: 0.74rem;
}

@media (max-width: 720px) {
	.gpc-cookie {
		bottom: 0;
		width: 100%;
		transform: none;
		left: 0;
	}

	.gpc-cookie__card {
		flex-wrap: wrap;
		border-radius: 18px 18px 0 0;
		padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
	}

	.gpc-cookie__body {
		flex-basis: calc(100% - 64px);
	}

	.gpc-cookie__actions {
		width: 100%;
	}

	.gpc-cookie__actions .gpc-btn {
		flex: 1;
	}

	.gpc-cookie__settings {
		width: 100%;
		text-align: center;
	}
}
