#bs-popups-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 999999;
    pointer-events: none;
}

.bs-popup {
    position: fixed;
    pointer-events: auto;
    display: none;
    animation: bsFadeIn 0.4s ease-out forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000000;

    /* Responsive Widths */
    width: var(--bs-width-desktop, 400px);
    max-width: 95vw;
}

@media (max-width: 991px) {
    .bs-popup {
        width: var(--bs-width-tablet, 350px);
    }
}

@media (max-width: 767px) {
    .bs-popup {
        width: var(--bs-width-mobile, 85%);
    }
}

@keyframes bsFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bs-popup img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Positions */
.bs-popup-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bs-popup-top-left {
    top: 20px;
    left: 20px;
}

.bs-popup-top-right {
    top: 20px;
    right: 20px;
}

.bs-popup-bottom-left {
    bottom: 20px;
    left: 20px;
}

.bs-popup-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* Footer / Controls */
.bs-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #555;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bs-popup-footer label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bs-close-popup {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    padding: 5px;
    transition: opacity 0.2s;
}

.bs-close-popup:hover {
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .bs-popup {
        width: 80% !important;
        left: 10% !important;
        top: 10% !important;
        transform: none !important;
    }
}