/* General Styles */
#cookie-compliance-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    color: #fff;
    padding: 10px 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    /* display: flex; */
    display: none; /* Hide the banner by default */
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

#cookie-compliance-banner p {
    margin: 0;
    padding: 0;
    flex: 1;
    text-align: left;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#cookie-compliance-banner a {
    color: #0073aa;
    text-decoration: none;
    margin-left: 10px;
    font-weight: bold;
    display: inline-block;
}

#cookie-compliance-banner a:hover {
    text-decoration: underline;
}

#cookie-buttons {
    display: flex;
    gap: 10px;
}

.open-cookie-preferences:hover {
    cursor: pointer;
}

.cookie-button {
    background-color: #0073aa;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.cookie-button:hover {
    background-color: #005a87;
}

/* Modal Styles */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 60px;
}

.cookie-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    position: relative;
}

.cookie-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cookie-modal-close:hover,
.cookie-modal-close:focus {
    color: #000;
}

#modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Styles for Cookie Categories */
.cookie-category {
    margin-bottom: 15px;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.category-checkbox {
    margin-right: 10px;
}

.toggle-category-details {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.cookie-category-details {
    background-color: #f8f8f8;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.cookie-info {
    margin-bottom: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Mobile Styles */
@media (max-width: 768px) {
    #cookie-compliance-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    #cookie-compliance-banner p {
        margin-bottom: 10px;
        text-align: center;
        white-space: normal;
    }

    #cookie-compliance-banner a {
        margin-left: 0;
        margin-top: 10px;
    }

    #cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-button {
        width: 100%;
        padding: 10px;
    }

    .cookie-modal-content {
        width: 90%;
    }
}
