/*
|--------------------------------------------------------------------------
| Lego Kubik Cookie
| cookie.css
|--------------------------------------------------------------------------
| Фирменное уведомление об использовании файлов cookie
|--------------------------------------------------------------------------
*/


/* ==========================================================================
   Контейнер уведомления
========================================================================== */

.lk-cookie {
    position: fixed;
    z-index: 999999;

    right: 24px;
    bottom: 24px;
    left: 129px;

    display: flex;
    justify-content: center;

    pointer-events: none;
}


/* Атрибут hidden должен полностью скрывать уведомление */

.lk-cookie[hidden] {
    display: none !important;
}


/* ==========================================================================
   Основная карточка
========================================================================== */

.lk-cookie__card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    box-sizing: border-box;
    width: 100%;
    max-width: 1060px;

    padding: 20px 22px;

    color: #212632;
    background: #ffffff;

    border: 1px solid rgba(14, 63, 126, 0.08);
    border-radius: 24px;

    box-shadow:
        0 0 0 1px rgba(14, 63, 126, 0.04),
        0 1px 1px -0.5px rgba(42, 51, 69, 0.04),
        0 3px 3px -1.5px rgba(42, 51, 70, 0.04),
        0 6px 6px -3px rgba(42, 51, 70, 0.04),
        0 12px 12px -6px rgba(14, 63, 126, 0.06),
        0 24px 40px -12px rgba(14, 63, 126, 0.18);

    pointer-events: auto;

    animation: lk-cookie-show 0.35s ease both;
}


/* Нижняя декоративная плашка в стиле Dashwall */

.lk-cookie__card::after {
    content: "";

    position: absolute;
    z-index: -1;

    right: 40px;
    bottom: -8px;
    left: 40px;

    height: 8px;

    background: #e2e7ef;

    border-radius: 0 0 10px 10px;
}


/* ==========================================================================
   Текстовая часть
========================================================================== */

.lk-cookie__content {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    min-width: 0;
}


/* Иконка */

.lk-cookie__icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    background: #f6f7fa;

    border: 1px solid rgba(14, 63, 126, 0.08);
    border-radius: 16px;

    font-size: 24px;
    line-height: 1;

    user-select: none;
}


/* Контейнер текста */

.lk-cookie__text {
    min-width: 0;
}


/* Заголовок */

.lk-cookie__title {
    margin: 0 0 6px;
    padding: 0;

    color: #212632;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}


/* Описание */

.lk-cookie__description {
    max-width: 670px;

    margin: 0 0 6px;
    padding: 0;

    color: rgba(33, 38, 50, 0.72);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}


/* Ссылка на политику */

.lk-cookie__privacy-link {
    display: inline-block;

    color: #0e979b;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;
}

.lk-cookie__privacy-link:hover,
.lk-cookie__privacy-link:focus-visible {
    color: #08777a;
    text-decoration: underline;
}


/* ==========================================================================
   Кнопки
========================================================================== */

.lk-cookie__actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 10px;
}


/* Общая кнопка */

.lk-cookie__button {
    appearance: none;
    -webkit-appearance: none;

    box-sizing: border-box;
    min-height: 44px;

    margin: 0;
    padding: 10px 16px;

    border: 0;
    border-radius: 14px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* Основная кнопка */

.lk-cookie__button--primary {
    color: #ffffff;
    background: #212632;

    box-shadow:
        0 5px 14px rgba(33, 38, 50, 0.18);
}

.lk-cookie__button--primary:hover {
    color: #ffffff;
    background: #0e979b;

    transform: translateY(-1px);
}


/* Вторичная кнопка */

.lk-cookie__button--secondary {
    color: #212632;
    background: #f1f3f6;

    border: 1px solid rgba(14, 63, 126, 0.08);
}

.lk-cookie__button--secondary:hover {
    color: #212632;
    background: #e7ebf0;

    transform: translateY(-1px);
}


/* Фокус с клавиатуры */

.lk-cookie__button:focus-visible,
.lk-cookie__privacy-link:focus-visible {
    outline: 3px solid rgba(14, 151, 155, 0.28);
    outline-offset: 3px;
}


/* Нажатие */

.lk-cookie__button:active {
    transform: translateY(0);
}


/* ==========================================================================
   Анимация
========================================================================== */

@keyframes lk-cookie-show {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Отключение анимации по системной настройке */

@media (prefers-reduced-motion: reduce) {

    .lk-cookie__card {
        animation: none;
    }

    .lk-cookie__button {
        transition: none;
    }
}


/* ==========================================================================
   Тёмная тема Dashwall
========================================================================== */

body.dark .lk-cookie__card {
    color: #ffffff;
    background: #313642;

    border-color: rgba(255, 255, 255, 0.07);

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.035),
        0 2px 4px rgba(0, 0, 0, 0.18),
        0 8px 18px rgba(0, 0, 0, 0.22),
        0 24px 48px rgba(0, 0, 0, 0.34);
}

body.dark .lk-cookie__card::after {
    background: #20242c;
}

body.dark .lk-cookie__icon {
    background: #272c36;
    border-color: rgba(255, 255, 255, 0.07);
}

body.dark .lk-cookie__title {
    color: #ffffff;
}

body.dark .lk-cookie__description {
    color: rgba(255, 255, 255, 0.66);
}

body.dark .lk-cookie__privacy-link {
    color: #56c9cc;
}

body.dark .lk-cookie__privacy-link:hover,
body.dark .lk-cookie__privacy-link:focus-visible {
    color: #82e0e2;
}

body.dark .lk-cookie__button--primary {
    color: #212632;
    background: #ffffff;

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.2);
}

body.dark .lk-cookie__button--primary:hover {
    color: #ffffff;
    background: #0e979b;
}

body.dark .lk-cookie__button--secondary {
    color: rgba(255, 255, 255, 0.88);
    background: #272c36;

    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .lk-cookie__button--secondary:hover {
    color: #ffffff;
    background: #3a404c;
}


/* ==========================================================================
   Планшеты
========================================================================== */

@media (max-width: 900px) {

    .lk-cookie {
        left: 24px;
    }

    .lk-cookie__card {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .lk-cookie__description {
        max-width: none;
    }

    .lk-cookie__actions {
        justify-content: flex-end;
    }
}


/* ==========================================================================
   Мобильная версия
========================================================================== */

@media (max-width: 600px) {

    .lk-cookie {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .lk-cookie__card {
        gap: 16px;

        padding: 16px;

        border-radius: 20px;
    }

    .lk-cookie__card::after {
        right: 28px;
        left: 28px;
    }

    .lk-cookie__content {
        gap: 12px;
    }

    .lk-cookie__icon {
        width: 42px;
        height: 42px;

        border-radius: 14px;

        font-size: 21px;
    }

    .lk-cookie__title {
        font-size: 17px;
    }

    .lk-cookie__description {
        font-size: 13px;
        line-height: 1.5;
    }

    .lk-cookie__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .lk-cookie__button {
        width: 100%;
        min-height: 46px;

        white-space: normal;
    }
}


/* ==========================================================================
   Очень узкие экраны
========================================================================== */

@media (max-width: 380px) {

    .lk-cookie__content {
        display: block;
    }

    .lk-cookie__icon {
        margin-bottom: 10px;
    }
}