/**
 * Cookie banner. Loads on every front-end page, including ones without site.css, so it carries
 * its own copy of the site colors. Accept and Decline are the same size and weight on purpose:
 * saying no has to be as easy as saying yes.
 */
.consent {
	--c-text: #1a1530;
	--c-muted: #5c5670;
	--c-line: #e6e2ee;
	--c-purple: #8f43ee;
	--c-purple-hover: #9a56f0;
	--c-purple-deep: #6a24c9;
	--c-btn-line: #d6cfe3;
	position: fixed;
	z-index: 100000;
	left: 24px;
	bottom: 24px;
	box-sizing: border-box;
	width: min(392px, calc(100vw - 48px));
	padding: 22px 22px 20px;
	border: 1px solid var(--c-line);
	border-radius: 18px;
	background: #fff;
	color: var(--c-text);
	box-shadow: 0 2px 4px rgba(22, 11, 51, 0.06), 0 24px 56px -20px rgba(22, 11, 51, 0.32);
	font-family: inherit;
	font-size: 0.9375rem;
	line-height: 1.55;
	text-align: left;
	animation: consent-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.consent[hidden] { display: none; }
.consent.is-leaving { animation: consent-out 0.2s ease-in both; }

.consent .consent__title { margin: 0 0 6px; padding: 0; color: var(--c-text); font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.consent .consent__text { margin: 0; color: var(--c-muted); text-wrap: pretty; }
.consent .consent__text[hidden] { display: none; }
.consent .consent__more { margin: 8px 0 0; }
.consent .consent__more a { color: var(--c-purple-deep); font-weight: 600; text-decoration: none; transition: color 0.2s ease; }
.consent .consent__more a:hover { color: var(--c-purple); }

.consent__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.consent .consent__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 1.5px solid var(--c-btn-line);
	border-radius: 10px;
	background: #fff;
	color: var(--c-text);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.consent .consent__btn[hidden] { display: none; }
.consent .consent__btn:hover { border-color: var(--c-purple-hover); }
.consent .consent__btn:active { transform: scale(0.98); }
.consent .consent__btn--yes { border-color: var(--c-purple); background: var(--c-purple); color: #fff; }
.consent .consent__btn--yes:hover { border-color: var(--c-purple-hover); background: var(--c-purple-hover); }
.consent :focus-visible { outline: 2px solid var(--c-purple); outline-offset: 3px; border-radius: 6px; }
.consent .consent__btn:focus-visible { border-radius: 10px; }

@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes consent-out { to { opacity: 0; transform: translateY(8px); } }

@media (max-width: 600px) {
	.consent { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 18px 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.consent, .consent.is-leaving { animation: none; }
}
@media print {
	.consent { display: none; }
}
