/* cookie - the two-button notice (functions.php wp_footer -> .cookie-notice, assets/cookie-notice.js) and the
   click-to-load map placeholder (.map-consent).
   Fixed bottom-right; the callback button lifts above it while it is showing. */

.cookie-notice {
	position: fixed;
	right: var(--rl-gutter);
	bottom: 16px;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 16px;
	width: min(46rem, 100% - 2 * var(--rl-gutter));
	padding: 12px 12px 12px 24px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-radius: 999px;
	box-shadow: 0 8px 28px rgba(43, 43, 43, 0.22), 0 1px 2px rgba(43, 43, 43, 0.08);
}

.cookie-notice[hidden] { display: none; }

.cookie-notice__text {
	flex: 1 1 auto;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.cookie-notice__text a {
	color: var(--wp--preset--color--coral);
	text-underline-offset: 3px;
}

.cookie-notice__actions {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

.cookie-notice__button {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.cookie-notice__button:hover { background: #7f0219; }

.cookie-notice__button--ghost {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	box-shadow: inset 0 0 0 1.5px rgba(43, 43, 43, 0.35);
}

.cookie-notice__button--ghost:hover { background: rgba(43, 43, 43, 0.08); }

.cookie-notice__button:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.cookie-notice {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 16px;
		border-radius: 24px;
		text-align: center;
	}

	.cookie-notice__actions { flex-direction: column; }
}

/* Map placeholder: the Yandex map loads only after «Принять» or a click here (assets/cookie-notice.js). */
.map-consent {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 100%;
	min-height: inherit;
	padding: 32px 24px;
	text-align: center;
}

.map-consent__text {
	max-width: 28rem;
	margin: 0;
	color: var(--rl-muted);
}

.map-consent__button {
	min-height: 44px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.map-consent__button:hover { background: #7f0219; }

.map-consent__button:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

/* Footer: legal links and the operator's details. */
.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
}

.site-footer__legal a,
.site-footer__legal button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible,
.site-footer__legal button:hover,
.site-footer__legal button:focus-visible { color: var(--wp--preset--color--base); }

.site-footer__requisites {
	flex-basis: 100%;
	margin: 0;
	font-size: 0.8125rem;
}
