#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
}
#cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
}
#cookie-banner a {
    color: #00ffcc;
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 10px;
}
.cookie-buttons .cookie-btn {
    background-color: #00ffcc;
    color: black;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    text-align: center;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.cookie-buttons .cookie-btn:hover {
    background-color: #00ccaa;
}
.hidden {
    display: none;
}
#cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 9999; 
    display: none; 
    pointer-events: auto; 
}
body.no-scroll {
    overflow: hidden; 
    pointer-events: none; 
}
body.no-scroll #cookie-banner,
body.no-scroll #cookie-preferences-modal {
    pointer-events: auto; 
}
#cookie-preferences-modal {
    position: fixed;
    bottom: 60px; 
    left: 50%;
    transform: translateX(-50%); 
    background-color: rgba(0, 0, 0, 0.9); 
    color: white; 
    padding: 20px;
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    z-index: 10001; 
    display: none; 
    max-width: 400px; 
    max-height: fit-content;
    width: 90%; 
    box-sizing: border-box; 
    text-align: center; 
    opacity: 0; 
    transition: transform 0.5s ease, opacity 0.5s ease;
}
#cookie-preferences-modal.show {
    display: block; 
    transform: translateX(-50%) translateY(0); 
    opacity: 1; 
}
#cookie-preferences-modal .modal-content {
    background-color: rgba(0, 0, 0, 0.9); 
    color: white; 
    padding: 0; 
    margin: 0; 
    border: none; 
    box-shadow: none; 
    position: relative;
    z-index: 10002; 
    text-align: left; 
}
#cookie-preferences-modal h2 {
    margin-top: 0;
    font-size: 1.2rem; 
    color: #00ffcc; 
    text-align: center; 
}
#cookie-preferences-modal form {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}
#cookie-preferences-modal button {
    background-color: #00ffcc; 
    color: black;
    border: none;
    padding: 10px 15px;
    border-radius: 5px; 
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}
#cookie-preferences-modal button:hover {
    background-color: #00ccaa; 
}
#cookie-preferences-modal label {
    display: flex;
    align-items: center;
    gap: 10px; 
    font-size: 0.9rem;
    color: white; 
}
#cookie-preferences-modal .modal-content {
    max-width: 100%; 
    margin: 0 auto; 
}
@media (max-width: 768px) {
    #cookie-banner {
        flex-direction: column; 
        align-items: flex-start; 
        padding: 10px; 
    }
    #cookie-banner p {
        margin-bottom: 10px; 
        font-size: 0.8rem; 
    }
    .cookie-buttons {
        width: 100%; 
        justify-content: space-between; 
        flex-direction: column; 
        gap: 10px; 
    }
    .cookie-buttons .cookie-btn {
        flex: 1; 
        margin: 0 5px; 
        padding: 8px 10px; 
        font-size: 0.8rem; 
        width: 100%; 
    }
    #cookie-preferences-modal {
        bottom: auto; 
        top: 50%; 
        transform: translate(-50%, -50%); 
        max-width: 90%; 
        width: 90%; 
        padding: 15px; 
    }
    #cookie-preferences-modal h2 {
        font-size: 1rem; 
    }
    #cookie-preferences-modal form {
        gap: 10px; 
    }
    #cookie-preferences-modal button {
        padding: 8px 10px; 
        font-size: 0.8rem; 
    }
    #cookie-preferences-modal label {
        font-size: 0.8rem; 
    }
}