/*
 * Плашка согласия на cookie и кнопка сброса на странице политики.
 * Стиль плашки повторяет подвал сайта (решение Евгения 03.10.2026): фон #1d1e30
 * с прозрачностью 90%, белый текст, сверху оранжевая полоса 4 px как у подвала.
 * Кнопки: «Принять» - оранжевая #b3371b, «Необходимые» - серая.
 */

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    min-height: max(260px, var(--cookie-consent-min, 0px));
    padding: 24px 20px;
    box-sizing: border-box;
    background: rgba(29, 30, 48, 0.9);
    border-top: 4px solid #b3371b;
    color: #fefefe;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
}

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

.cookie-consent__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.cookie-consent__body {
    max-width: 900px;
}

.cookie-consent__title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
}

.cookie-consent__text {
    margin: 0;
    color: #fefefe;
}

.cookie-consent__more {
    white-space: normal;
}

.cookie-consent__text a {
    color: #fefefe;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__text a:hover,
.cookie-consent__text a:focus {
    color: #ffb59f;
}

.cookie-consent__actions {
    display: flex;
    gap: 12px;
}

.cookie-consent__btn {
    padding: 14px 34px;
    border: 0;
    border-radius: 0;
    background: #5d6172;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cookie-consent__btn--primary {
    background: #b3371b;
}

.cookie-consent__btn--primary:hover,
.cookie-consent__btn--primary:focus {
    background: #992f18;
}

.cookie-consent__btn--secondary:hover,
.cookie-consent__btn--secondary:focus {
    background: #6d7286;
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid #fefefe;
    outline-offset: 2px;
}

/* Кнопка сброса согласия на странице политики: шорткод [lb_cookie_settings] */
.cookie-settings__reset {
    display: inline-block;
    padding: 14px 34px;
    border: 0;
    border-radius: 0;
    background: #b3371b;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cookie-settings__reset:hover,
.cookie-settings__reset:focus {
    background: #992f18;
}

.cookie-settings__reset:focus-visible {
    outline: 2px solid #1d1e30;
    outline-offset: 2px;
}

@media screen and (max-width: 767px) {
    .cookie-consent {
        min-height: max(300px, var(--cookie-consent-min, 0px));
        padding: 20px 16px;
    }

    .cookie-consent__inner {
        gap: 16px;
    }

    .cookie-consent__title {
        font-size: 15px;
        line-height: 20px;
    }

    /* Кнопки в одну строку и одного размера: «Принять» слева, «Необходимые» справа */
    .cookie-consent__actions {
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 10px;
    }

    .cookie-consent__btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 14px 10px;
        font-size: 13px;
        white-space: nowrap;
        text-align: center;
    }
}
