/* ── Cookie consent: баннер, модалка, страница управления ─────────────────────
 * Стилистика повторяет сайт: тёмный #231f20, акцент-зелёный #83a66a,
 * оверлей rgba(36,40,72,.8), радиус .5rem и кнопки в духе .gift__button__default
 * (заглавные, инверсия и лёгкий scale при наведении). Шрифт наследуется от сайта.
 * ────────────────────────────────────────────────────────────────────────── */
.cc-hidden { display: none !important; }

/* Кнопки — в стилистике .gift__button__default */
.cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 1.8rem;
	border: 1px solid #231f20;
	background: transparent;
	color: #231f20;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .15s ease-out, background-color .15s, color .15s, border-color .15s;
}
.cc-btn:hover { transform: scale(1.03); }
.cc-btn--primary { background: #231f20; color: #fff; border-color: #231f20; }
.cc-btn--primary:hover { background: #fff; color: #231f20; }
.cc-btn--ghost { border-color: #d6d6d6; color: #231f20; }
.cc-btn--ghost:hover { border-color: #231f20; }
.cc-btn--link {
	border-color: transparent; color: #83a66a; background: transparent;
	text-transform: none; font-weight: 700; padding: 0 .6rem; min-height: 0;
}
.cc-btn--link:hover { color: #231f20; transform: none; }

/* Баннер внизу — тёмная компактная плашка */
.cc-banner {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 100000;
	background: #231f20;
	color: #e3e3e3;
	padding: 9px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: space-between;
	box-shadow: 0 -4px 18px rgba(0, 0, 0, .28);
	font-size: 13px;
	line-height: 1.45;
}
.cc-banner__text { flex: 1 1 420px; min-width: 240px; color: #c9c9c9; }
.cc-banner__text a { color: #fff; text-decoration: underline; }
.cc-banner__text a:hover { color: #83a66a; }
.cc-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Кнопки внутри тёмного баннера — компактнее и читаемо на тёмном фоне */
.cc-banner .cc-btn { min-height: 34px; padding: 0 14px; font-size: 12px; border-color: #5c5c5c; color: #ededed; }
.cc-banner .cc-btn:hover { border-color: #fff; }
.cc-banner .cc-btn--ghost { border-color: #4a4a4a; color: #d8d8d8; }
.cc-banner .cc-btn--ghost:hover { border-color: #fff; color: #fff; }
.cc-banner .cc-btn--primary { background: #fff; color: #231f20; border-color: #fff; }
.cc-banner .cc-btn--primary:hover { background: #e2e2e2; color: #231f20; }

/* Модалка — как .maintenance-modal */
.cc-modal-overlay {
	position: fixed; inset: 0;
	z-index: 100001;
	background: rgba(36, 40, 72, .8);
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
	animation: ccFade .3s ease-out;
}
.cc-modal {
	background: #fff; color: #231f20;
	max-width: 620px; width: 100%;
	max-height: 90vh; overflow-y: auto;
	border-radius: .5rem;
	padding: 2.5rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
	position: relative;
	animation: ccPop .3s ease-out;
}
.cc-modal__title { font-size: 1.5rem; font-weight: 700; color: #231f20; margin: 0 0 10px; padding-right: 28px; line-height: 1.3; }
.cc-modal__lead { font-size: 14px; color: #757575; line-height: 1.6; margin: 0 0 18px; }
.cc-modal__lead a { color: #83a66a; }
.cc-modal__lead a:hover { color: #231f20; }
.cc-modal__close {
	position: absolute; top: 18px; right: 18px;
	width: 28px; height: 28px; border: none; background: none;
	font-size: 26px; line-height: 1; color: #b0b0b0; cursor: pointer;
	transition: color .15s;
}
.cc-modal__close:hover { color: #231f20; }
.cc-modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 24px; }

/* Категория cookie */
.cc-cat {
	border-top: 1px solid #ececec;
	padding: 16px 0;
	display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
}
.cc-cat__body { flex: 1; }
.cc-cat__title { font-size: 16px; font-weight: 700; color: #231f20; margin: 0 0 6px; }
.cc-cat__desc { font-size: 13px; color: #757575; line-height: 1.6; margin: 0; }
.cc-cat__tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.cc-tag { font-size: 11px; color: #4a4a4a; background: #f3f3f3; border-radius: 4px; padding: 3px 8px; }
.cc-cat__control { flex: 0 0 auto; padding-top: 2px; }
.cc-always { font-size: 12px; color: #5b7d44; background: #eef3e9; border-radius: 20px; padding: 6px 14px; white-space: nowrap; }

/* Тумблер — акцент бренда */
.cc-switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-switch__slider {
	position: absolute; cursor: pointer; inset: 0;
	background: #ccc; border-radius: 26px; transition: .2s;
}
.cc-switch__slider:before {
	content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
	background: #fff; border-radius: 50%; transition: .2s;
}
.cc-switch input:checked + .cc-switch__slider { background: #231f20; }
.cc-switch input:checked + .cc-switch__slider:before { transform: translateX(22px); }

/* Карточка настроек на странице /cookie/ */
.cc-card {
	background: #fff; border: 1px solid #e6e6e6; border-radius: .5rem; overflow: hidden;
}
.cc-card__head {
	display: flex; align-items: center; gap: 10px;
	padding: 16px 20px; background: #f7f7f7; border-bottom: 1px solid #e6e6e6;
	font-weight: 700; color: #231f20;
}
.cc-status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; margin-left: auto; }
.cc-status--off { background: #f3eaea; color: #8a3a3a; }
.cc-status--on { background: #eef3e9; color: #5b7d44; }
.cc-card__foot {
	display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
	padding: 16px 20px; background: #fafafa; border-top: 1px solid #e6e6e6;
}
.cc-page__note { font-size: 13px; color: #888; margin: 16px 0 0; }
.cc-page__note a { color: #83a66a; }
.cc-page__note a:hover { color: #231f20; }

@keyframes ccFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ccPop {
	from { opacity: 0; transform: translateY(-20px) scale(.95); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
	.cc-banner { flex-direction: column; align-items: stretch; padding: 8px 12px; gap: 7px; font-size: 12px; }
	.cc-banner__links { display: none; }
	.cc-banner__actions { justify-content: stretch; gap: 6px; }
	.cc-banner__actions .cc-btn { flex: 1; min-height: 30px; padding: 0 6px; font-size: 11px; }
	.cc-modal { padding: 1.75rem 1.25rem; }
	.cc-modal__actions { justify-content: stretch; }
	.cc-modal__actions .cc-btn { flex: 1; }
	.cc-banner__text { flex: 1 1 100%; text-align: center; }
}
