/* ---------------------------------------------------------------------------
   Уведомление об использовании файлов cookie.
   Цвета взяты из палитры сайта: бордовый #962237 / #B92034 и тёмный #212d3a.
   Подключается из footer.php вместе с js/cookie-consent.js.
   --------------------------------------------------------------------------- */

.cookie-consent {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 10050;
    width: 420px;
    max-width: calc(100vw - 40px);
    background: #fff;
    color: #212d3a;
    border-top: 4px solid #962237;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(33, 45, 58, .25);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding: 22px 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .35s ease, transform .35s ease;
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

.cookie-consent__inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-consent__text {
    flex: 1 1 auto;
    margin: 0;
    color: #212d3a;
}

.cookie-consent__link {
    color: #962237;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus {
    color: #212d3a;
    text-decoration: underline;
}

.cookie-consent__btn {
    flex: 0 0 auto;
    display: inline-block;
    border: 0;
    border-radius: 3px;
    background: #962237;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 14px 28px;
    cursor: pointer;
    transition: background .25s ease;
}

.cookie-consent__btn:hover,
.cookie-consent__btn:focus {
    background: #212d3a;
    color: #fff;
    outline: none;
}

.cookie-consent__btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(150, 34, 55, .35);
}

@media (max-width: 575px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-width: none;
        padding: 18px 18px 20px;
    }

    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cookie-consent__btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Версия для слабовидящих (плагин bvi) перекрашивает страницу сама —
   не мешаем ей своими цветами. */
.bvi-active .cookie-consent,
body.bvi-active .cookie-consent {
    border-top-color: currentColor;
}
