/* Cookie-баннер GODSDOG */

.pastor-cookie-consent {
	--pastor-cookie-sand: #c2a97c;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	padding: 0.75rem;
	pointer-events: none;
	opacity: 0;
	transform: translateY(1rem);
	transition:
		opacity 0.35s ease,
		transform 0.35s ease;
}

.pastor-cookie-consent.is-visible {
	pointer-events: auto;
	opacity: 1;
	transform: translateY(0);
}

.pastor-cookie-consent__inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: min(44rem, calc(100vw - 1.5rem));
	margin: 0 auto;
	padding: 1rem 1.125rem 1.125rem;
	border: 1px solid var(--gray-200, #e5e5e5);
	border-top: 2px solid var(--pastor-cookie-sand);
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 12px 40px rgba(43, 51, 41, 0.1);
	backdrop-filter: blur(10px);
}

.pastor-cookie-consent__content {
	min-width: 0;
}

.pastor-cookie-consent__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pastor-cookie-sand);
}

.pastor-cookie-consent__text {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: var(--not-black, #2b3329);
}

.pastor-cookie-consent__link {
	color: inherit;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(194, 169, 124, 0.55);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s ease;
}

.pastor-cookie-consent__link:hover {
	text-decoration-color: var(--pastor-cookie-sand);
}

.pastor-cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
}

.pastor-cookie-consent__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--not-black, #2b3329);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		opacity 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.pastor-cookie-consent__btn:focus-visible {
	outline: 2px solid var(--pastor-cookie-sand);
	outline-offset: 2px;
}

.pastor-cookie-consent__btn--primary {
	background: var(--not-black, #2b3329);
	border-color: var(--not-black, #2b3329);
	color: #fff;
}

.pastor-cookie-consent__btn--primary:hover {
	opacity: 0.92;
}

.pastor-cookie-consent__btn--ghost {
	background: #fff;
	color: var(--not-black, #2b3329);
}

.pastor-cookie-consent__btn--ghost:hover {
	border-color: var(--pastor-cookie-sand);
	color: var(--not-black, #2b3329);
	background: rgba(194, 169, 124, 0.08);
}

.pastor-cookie-consent__footer-link {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.6875rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: underline;
	text-decoration-color: rgba(194, 169, 124, 0.45);
	text-underline-offset: 3px;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
}

.pastor-cookie-consent__footer-link:hover {
	opacity: 1;
	text-decoration-color: var(--pastor-cookie-sand);
}

@media (min-width: 640px) {
	.pastor-cookie-consent__inner {
		flex-direction: row;
		align-items: center;
		gap: 1.25rem;
		padding: 1.125rem 1.25rem;
	}

	.pastor-cookie-consent__content {
		flex: 1 1 auto;
	}

	.pastor-cookie-consent__actions {
		flex: 0 0 auto;
		flex-wrap: nowrap;
	}
}

@media (max-width: 768px) {
	.pastor-cookie-consent {
		padding: 0.625rem;
		padding-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0px));
	}

	body.narine-has-mobile-bottom-bar .pastor-cookie-consent,
	body:has(.narine-masthead-mobile-bottom) .pastor-cookie-consent {
		bottom: calc(var(--narine-mobile-bottom-bar-height, 3.5rem) + env(safe-area-inset-bottom, 0px));
	}

	.pastor-cookie-consent__actions {
		flex-direction: column;
	}

	.pastor-cookie-consent__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pastor-cookie-consent {
		transition: none;
	}
}

html.pastor-cookie-consent-open {
	scroll-padding-bottom: 8rem;
}
