#cookie_note {
    display: none; /* Скрываем по умолчанию, JS добавит .show */
    justify-content: center;
    flex-wrap: wrap;
    position: fixed;
    z-index: 9999; /* Поднял z-index, чтобы точно было поверх всего */
    bottom: 15px;
    left: 50%;
    width: 100%;
    max-width: 90%;
    transform: translateX(-50%);
    padding: 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.4);
}

#cookie_note p {
    margin: 0;
    font-size: 0.8rem;
    text-align: left;
    color: black;
}

#cookie_note .btn-sm {
    display: block;
    margin: 0 auto;
}

.cookie_accept {
    width: 20%;
}

#cookie_note.show {
    display: flex;

}



@media (max-width: 575px) {
    #cookie_note.show {
        display: block; /* Show the banner */
        bottom: 0;      /* Stick to the very bottom */
        left: 0;
        transform: none; /* Remove horizontal centering from desktop */
        max-width: 100%; /* Use full screen width */
        width: 100%;
        border-radius: 0; /* Remove rounded corners for a full-width bar */
        padding: 15px;
    }

    #cookie_note p {
        font-size: 0.6rem; /* Slightly smaller text for mobile */
        text-align: center;
    }

    #cookie_note .btn-sm {
        width: 100%;      /* Full-width button for easier tapping */
        margin-top: 10px;
    }
}