.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 99999;

    font-family: Arial, Helvetica, sans-serif;

    display: none;
}

.cookie-banner * {
    box-sizing: border-box;
}

.cookie-banner__inner {
    max-width: 1180px;
    margin: 0 auto;

    padding: 24px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
}


/* ========================================
   Основной экран
======================================== */

.cookie-banner__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner__text {
    max-width: 720px;

    font-size: 16px;
    line-height: 1.5;

    color: #222222;
}

.cookie-banner a {
    color: #222222;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner a:hover {
    text-decoration: none;
}


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

.cookie-banner__buttons {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}

.cookie-btn {
    min-height: 48px;

    padding: 12px 24px;

    border: 1px solid transparent;
    border-radius: 8px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

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

.cookie-btn--primary {
    background: #AB2328;
    color: #ffffff;
}

.cookie-btn--primary:hover {
    background: #AB2328;
}

.cookie-btn--secondary {
    background: #ffffff;
    color: #AB2328;
    border-color: #AB2328;
}

.cookie-btn--secondary:hover {
    background: #f5f5f5;
}


/* ========================================
   Настройки
======================================== */

.cookie-settings {
    display: none;
}

.cookie-settings.is-active {
    display: block;
}

.cookie-settings__title {
    margin-bottom: 12px;

    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;

    color: #111111;
}

.cookie-settings__description {
    max-width: 850px;

    margin-bottom: 26px;

    font-size: 16px;
    line-height: 1.5;

    color: #444444;
}


/* ========================================
   Тип cookie
======================================== */

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 0;

    border-top: 1px solid #e7e7e7;
}

.cookie-option:last-of-type {
    border-bottom: 1px solid #e7e7e7;
}

.cookie-option__title {
    margin-bottom: 4px;

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

    color: #111111;
}

.cookie-option__description {
    font-size: 14px;
    line-height: 1.4;

    color: #777777;
}


/* ========================================
   Switch
======================================== */

.cookie-switch {
    position: relative;

    display: inline-block;

    width: 50px;
    height: 28px;

    flex-shrink: 0;

    cursor: pointer;
}

.cookie-switch input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.cookie-switch__slider {
    position: absolute;

    inset: 0;

    background: #cccccc;

    border-radius: 50px;

    transition: 0.2s ease;
}

.cookie-switch__slider::before {
    content: "";

    position: absolute;

    width: 22px;
    height: 22px;

    left: 3px;
    top: 3px;

    background: #ffffff;

    border-radius: 50%;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);

    transition: 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch__slider {
    background: #111111;
}

.cookie-switch input:checked + .cookie-switch__slider::before {
    transform: translateX(22px);
}

.cookie-switch--disabled {
    cursor: default;
    opacity: 0.55;
}


/* ========================================
   Save
======================================== */

.cookie-settings__save {
    margin-top: 24px;

    min-width: 160px;
}


/* ========================================
   Mobile
======================================== */

@media (max-width: 768px) {

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-banner__inner {
        padding: 20px;
        border-radius: 12px;
    }

    .cookie-banner__main {
        display: block;
    }

    .cookie-banner__text {
        margin-bottom: 18px;

        font-size: 14px;
    }

    .cookie-banner__buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-settings__title {
        font-size: 20px;
    }

    .cookie-settings__description {
        font-size: 14px;
    }

}
