/* Consent Management Banner - Simplified */

/* Main container - fixed at bottom, full width */
#consent-banner-main {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
}

/* Banner dialog - full width at bottom */
#consent-banner-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    margin: 0;
    padding: 20px;
    border: none;
    border-top: 1px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    max-width: none;
    transform: none;
}

/* Ensure modal stays at bottom when open */
#consent-banner-modal[open] {
    bottom: 0;
    top: auto;
    transform: none;
}

#consent-banner-main .link-out {
    color: #1976d2
}

/* Banner content wrapper - centered with max width */
#consent-banner-modal .consent-banner-modal-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

/* Banner text content */
#consent-banner-modal .consent-banner-modal-wrapper p {
    margin: 0;
    flex: 1;
    color: #333;
    line-height: 1.5;
}

/* Banner buttons container */
#consent-banner-modal .consent-banner-modal-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

/* Button base styles */
.consent-banner-button {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid #000;
    border-radius: 4px;
    background: transparent;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.consent-banner-button:hover {
    background: #f5f5f5;
}

/* Accept button - primary style */
.consent-banner-button[href="#accept"] {
    background: #000;
    color: #fff;
}

.consent-banner-button[href="#accept"]:hover {
    background: #333;
}

/* Settings dialog backdrop */
#consent-banner-settings::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

#consent-banner-modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

/* Settings dialog */
#consent-banner-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    margin: 0;
    padding: 30px;
    border: none;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

/* Settings heading */
#consent-banner-settings .consent-banner-heading {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* Settings list */
#consent-banner-settings ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#consent-banner-settings ul li {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

#consent-banner-settings ul li:last-child {
    border-bottom: none;
}

#consent-banner-settings ul label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

#consent-banner-settings ul input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#consent-banner-settings ul p {
    margin: 8px 0 0 28px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Settings buttons */
#consent-banner-settings .consent-banner-settings-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

#consent-banner-settings .consent-banner-settings-buttons .consent-banner-button {
    flex: 1;
}

.consent-banner-button[href="#save"] {
    background: #000;
    color: #fff;
}

.consent-banner-button[href="#save"]:hover {
    background: #333;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #consent-banner-modal {
        padding: 16px;
    }

    #consent-banner-modal .consent-banner-modal-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    #consent-banner-modal .consent-banner-modal-buttons {
        flex-direction: column;
        width: 100%;
    }

    .consent-banner-button {
        width: 100%;
        text-align: center;
    }

    #consent-banner-settings {
        width: 95%;
        max-width: none;
        max-height: 90vh;
        padding: 20px;
    }

    #consent-banner-settings .consent-banner-settings-buttons {
        flex-direction: column;
    }
}
