#consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    /* Higher than theme lightbox (1050) */
}

#consent-overlay.show {
    display: flex;
}

#consent-banner {
    background: #fff;
    border: 1px solid #ccc;
    padding: 30px;
    font-family: 'Poppins', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    /* Theme font */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    border-radius: 18px;
    /* Match theme rounded corners */
}

#consent-banner h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #212121;
}

#consent-banner p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 1.5rem;
}

#consent-banner a {
    color: #ce1415;
    text-decoration: underline;
}

#consent-banner button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Custom button styles to match theme without relying solely on bootstrap classes if they are overridden */
#consent-accept,
#consent-save {
    background-color: #ce1415;
    border-color: #ce1415;
    color: #fff !important;
}

#consent-accept:hover,
#consent-save:hover {
    background-color: #b01112;
    border-color: #b01112;
    color: #fff !important;
}

#consent-reject,
#consent-settings-btn {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}

#consent-reject:hover,
#consent-settings-btn:hover {
    background-color: #e2e6ea !important;
    border-color: #dae0e5 !important;
    color: #212529 !important;
}

#consent-settings {
    display: none;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

#consent-settings label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
}

#consent-settings .consent-label {
    font-weight: 600;
    margin-left: 8px;
    color: #212121;
}

#consent-settings .consent-desc {
    display: block;
    font-size: 0.85em;
    margin-left: 28px;
    color: #777;
    margin-top: 4px;
}

#consent-manage-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    /* Moved to left to avoid conflict with potential chat widgets or scroll-to-top */
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    display: none;
    z-index: 1099;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

#consent-manage-btn:hover {
    background: #fff;
    color: #ce1415;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#consent-manage-btn.show {
    display: block;
}