#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

#cookie-banner a {
    color: var(--main-purple);
    text-decoration: underline;
}

#cookie-banner .btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#cookie-banner button {
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
}

#cookie-accept-all {
    background: var(--main-purple);
    border: none;
    color: #fff;
}

#cookie-reject {
    background: #f0f0f0;
    border: none;
    color: #333;
}

#cookie-settings {
    background: transparent;
    border: 1px solid #ccc;
    color: #333;
}

/* Мобильная версия */
@media (max-width: 600px) {
    #cookie-banner {
        font-size: 13px;
        padding: 10px;
    }

    #cookie-banner button {
        width: 100%;
    }
}

#cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#cookie-modal .modal-box {
    background: #fff;
    color: #333;
    padding: 25px;
    border-radius: 12px;
    width: 420px;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#cookie-modal h3 {
    margin-top: 0;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#cookie-modal .modal-btns {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#cookie-save {
    background: var(--main-purple);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

#cookie-cancel {
    background: #f0f0f0;
    border: none;
    color: #333;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

#cookie-banner .title {
    font-size: 16px;
    font-weight: 600;
    line-height: 19px;
}

#cookie-banner .head {
    display: none;
}

.cookie-settings {
    display: block;
}

@media (max-width: 600px) {
    #cookie-banner .head {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        gap: 16px;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
    }

    #cookie-modal .modal-box {
        padding: 20px;
    }

    #cookie-modal .modal-btns {
        flex-direction: column;
    }

    #cookie-banner .btns {
        flex-direction: row;
    }

    #cookie-save,
    #cookie-cancel {
        width: 100%;
    }

    .cookie-settings-mob {
        width: auto;
        border: none;
        color: #333;
        width: auto !important;
        font-size: 12px;
        font-weight: 400;
        line-height: 15px;
        cursor: pointer;
        -webkit-transition-duration: .15s;
        transition-duration: .15s;
        -webkit-transition-property: color;
        transition-property: color;
        -webkit-transition-timing-function: ease-in-out;
        transition-timing-function: ease-in-out;


    }

    #cookie-banner button.cookie-settings-mob {
        padding: 5px 10px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 14px;
        flex: 1;
        min-width: 120px;
        background: none;
    }

    .cookie-settings {
        display: none;
    }
}


#cookie-settings-pc {
    display: block;
}

@media (max-width: 600px) {
    #cookie-settings-pc {
        display: none;
    }
}

#cookie-banner {
    display: flex;
    /* По умолчанию */
}

#cookie-modal {
    display: none;
    /* Скрыто по умолчанию */
}