/* Cookie*/
/* --- PREMIUM COOKIE BANNER MOD HOUSE --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(2, 77, 66, 0.15); /* Тень с оттенком изумруда */
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(150%) scale(0.9);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    font-family: inherit; /* Использует шрифт твоего проекта */
}

.cookie-banner.is-show {
    transform: translateY(0) scale(1);
}

.cookie-banner.is-hidden {
    opacity: 0 !important;
    pointer-events: none; /* Чтобы кнопки баннера не нажимались сквозь модалку */
    transform: translateY(20px); /* Можно слегка опустить при исчезновении */
}

.cookie-banner__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.cookie-banner__text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #5e6d6b;
}

.cookie-banner__actions {
    display: flex;
    gap: 14px;
}

.cookie-btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 0 1.5rem; /* чуть меньше для компактности баннера */
    min-height: 3.25rem; 
    font-weight: 700; 
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 13px; /* чтобы капс не выглядел слишком громоздко */
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

/* Кнопка Настройки — контурная */
.cookie-btn--settings {
    background: transparent;
    border-color: #e0e6e5;
    color: #1a1a1a;
}

.cookie-btn--settings:hover {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-2px);
}

/* Кнопка Принять — Изумрудный #024d42 */
.cookie-btn--accept {
    background: #10b981; /* твой --mh-accent */
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.cookie-btn--accept:hover {
    background: #34d399; /* твой --mh-accent-hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.cookie-btn--accept:active {
    transform: translateY(0);
}

.cookie-btn:active {
    transform: translateY(0);
}

/* Мобилка */
@media (max-width: 500px) {
    .cookie-banner {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
        padding: 24px;
    }
    
    .cookie-banner__actions {
        flex-direction: column-reverse;
    }
}

/* Модальное окно */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Затемнение посильнее */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none; /* ПО УМОЛЧАНИЮ СКРЫТО */
    align-items: center;
    justify-content: center;
    z-index: 100001; /* ДОЛЖЕН БЫТЬ ВЫШЕ БАННЕРА */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal__text {
    font-size: 15px;
    line-height: 1.6;
    /* Глубокий графитовый цвет, почти чёрный */
    color: #1a1a1a !important; 
    margin-bottom: 25px;
    display: block;
    /* Убираем любую прозрачность */
    opacity: 1 !important;
    font-weight: 400;
}

.cookie-modal.is-active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
}

.cookie-modal.is-active .cookie-modal__content {
    transform: translateY(0);
}

.cookie-modal__content {
    background: #ffffff !important;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 400px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-modal__option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.cookie-modal__option-desc {
    display: block;
    font-size: 14px; /* Увеличили еще на 1px */
    /* Используем очень темный цвет, почти черный */
    color: #2c3332 !important; 
    line-height: 1.5;
    margin-top: 4px;
    /* Убираем возможную прозрачность, если она была */
    opacity: 1 !important;
    /* Делаем шрифт чуть плотнее */
    font-weight: 500; 
}

.cookie-modal__option-name {
    display: block;
    font-size: 16px;
    font-weight: 800; /* Максимальная жирность для контраста */
    color: #000000 !important;
    margin-bottom: 2px;
}
.cookie-modal__title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

/* Кастомный переключатель (Switch) */
.mh-switch {
    position: relative;
    width: 44px; height: 24px;
}

.mh-switch input { opacity: 0; width: 0; height: 0; }

.mh-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e0e6e5;
    transition: .4s; border-radius: 24px;
}

.mh-slider:before {
    position: absolute; content: "";
    height: 18px; width: 18px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s; border-radius: 50%;
}

input:checked + .mh-slider { background-color: var(--mh-accent); }
input:checked + .mh-slider:before { transform: translateX(20px); }
input:disabled + .mh-slider { opacity: 0.6; cursor: not-allowed; }

/* Кнопка сохранения в настройках */
.cookie-btn--save {
    width: 100%; /* Растягиваем на всю ширину модалки */
    margin-top: 24px;
    background: #10b981; /* Твой основной зеленый */
    color: white;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.15);
    position: relative;
    overflow: hidden;
}

.cookie-btn--save:hover {
    background: #34d399; /* Твой светлый зеленый */
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.25);
}

/* Эффект легкого глянца при наведении */
.cookie-btn--save::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.cookie-btn--save:hover::after {
    left: 100%;
}

.cookie-btn--save:active {
    transform: translateY(-1px);
}