/* Broadstreet Scroll Popup */

#bsp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#bsp-overlay.bsp-visible {
    display: flex;
}

#bsp-popup {
    background: transparent;
    border-radius: 12px;
    padding: 1.5rem;
    width: 90%;
    max-width: 480px;
    box-sizing: border-box;
    position: relative;
}

#bsp-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e5e5;
}

#bsp-popup-label {
    font-size: 13px;
    color: #777;
    font-family: sans-serif;
}

#bsp-close-btn {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 0.15s;
}

#bsp-close-btn:hover {
    background: transparent;
}

#bsp-popup-content {
    min-height: 100px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #bsp-popup {
        background: transparent;
        color: #e5e5e5;
    }
    #bsp-popup-header {
        border-bottom-color: transparent;
    }
    #bsp-close-btn {
        border-color: transparent;
        color: #aaa;
    }
    #bsp-close-btn:hover {
        background: transparent;
    }
}
