/*
 * Cookie-consent banner (152-ФЗ)
 * Нейтральная светлая тема с синими акцентами, адаптив.
 */

#ec-cookie-banner {
display: none;
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 99999;
padding: 18px 20px;
background: #ffffff;
color: #1f2937;
box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.14);
border-top: 1px solid #e5e7eb;
font-family: 'Montserrat', Arial, sans-serif;
}

#ec-cookie-banner.ec-cookie--show {
display: block;
}

.ec-cookie__inner {
max-width: 1180px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 16px 24px;
}

.ec-cookie__content {
flex: 1 1 480px;
min-width: 280px;
}

.ec-cookie__title {
font-weight: 700;
font-size: 1.05em;
color: #0f172a;
margin-bottom: 6px;
}

.ec-cookie__text {
font-size: 0.95em;
line-height: 1.55;
margin: 0;
}

.ec-cookie__text a {
color: #2563eb;
text-decoration: underline;
text-underline-offset: 2px;
}

.ec-cookie__text a:hover {
color: #1d4ed8;
}

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

.ec-cookie__btn {
appearance: none;
border: 1px solid #2563eb;
background: #ffffff;
color: #2563eb;
padding: 10px 18px;
border-radius: 8px;
font-family: inherit;
font-size: 0.95em;
font-weight: 600;
line-height: 1.2;
cursor: pointer;
transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ec-cookie__btn:hover {
background: #eff6ff;
}

.ec-cookie__btn--primary {
background: #2563eb;
color: #ffffff;
border-color: #2563eb;
}

.ec-cookie__btn--primary:hover {
background: #1d4ed8;
border-color: #1d4ed8;
}

.ec-cookie__btn--ghost {
border-color: #d1d5db;
color: #4b5563;
background: transparent;
}

.ec-cookie__btn--ghost:hover {
background: #f3f4f6;
color: #111827;
}

/* Панель настроек */
.ec-cookie__settings {
max-width: 1180px;
margin: 16px auto 0;
padding: 16px;
background: #f8fafc;
border: 1px solid #e5e7eb;
border-radius: 10px;
}

.ec-cookie__settings[hidden] {
display: none;
}

.ec-cookie__settings-title {
font-weight: 700;
font-size: 1em;
color: #0f172a;
margin-bottom: 12px;
}

.ec-cookie__options {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 16px;
}

.ec-cookie__option {
display: flex;
gap: 12px;
align-items: flex-start;
cursor: pointer;
}

.ec-cookie__option input[type="checkbox"] {
width: 18px;
height: 18px;
margin-top: 2px;
accent-color: #2563eb;
flex: 0 0 auto;
}

.ec-cookie__option input[type="checkbox"]:disabled {
cursor: not-allowed;
opacity: 0.7;
}

.ec-cookie__option-name {
display: block;
font-weight: 600;
color: #111827;
}

.ec-cookie__option-desc {
display: block;
font-size: 0.9em;
line-height: 1.45;
color: #6b7280;
}

.ec-cookie__settings-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
}

/* Кнопка отзыва согласия в подвале */
.ec-cookie__revoke {
appearance: none;
border: 0;
background: none;
padding: 0;
color: #2563eb;
font-family: inherit;
font-size: 0.9em;
text-decoration: underline;
text-underline-offset: 2px;
cursor: pointer;
}

.ec-cookie__revoke:hover {
color: #1d4ed8;
}

/* Отзыв согласия в подвале — ссылка в сетке tmpl-section80 */
.site-footer__revoke {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	padding: 16px 0;
}

.site-footer__revoke .ec-cookie__revoke {
	color: var(--text_color2);
	font-size: 0.95em;
	text-decoration: none;
}

.site-footer__revoke .ec-cookie__revoke:hover {
	color: var(--text_color2);
	opacity: 0.75;
}

@media (max-width: 600px) {
#ec-cookie-banner {
padding: 14px 14px;
}

.ec-cookie__actions {
width: 100%;
}

.ec-cookie__btn {
flex: 1 1 100%;
}
}

/* ---------- форма отзыва согласия ---------- */
.ec-revoke-form__inner {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
margin-top: 10px;
max-width: 640px;
}
.ec-revoke-form__inner input[type="email"],
.ec-revoke-form__inner input[type="tel"] {
flex: 1 1 180px;
padding: 8px 12px;
border: 1px solid #ccd;
border-radius: 4px;
font-size: 14px;
}
.ec-revoke-form__text {
margin: 0 0 4px;
font-size: 13px;
opacity: .8;
flex-basis: 100%;
}

