/* Testing Pop Up */

/* Popup Modal */
#popup {
    display: none;
    position: fixed;
    /* Ensure it is fixed relative to the viewport */
    top: 10px;
    left: 130px;
    width: 80%;
    /* Take up the full screen */
    height: 100%;
    /* Take up the full screen */
    background-color: rgba(255, 255, 255, 0.95);
    /* Slight transparency for modal */
    z-index: 9999999;
    /* Very high z-index to ensure it's on top */
    overflow: ;
    /* Ensure content scrolls if it's too large */
    justify-content: center;
    /* Center the iframe horizontally */
    align-items: center;
    /* Center the iframe vertically */
}

/* Iframe inside the modal */
#popup iframe {
    width: 100%;
    height: 300%;
    border: none;
}

/* Close Button */
#popup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: black;
}

/* Overlay (background behind the modal) */
#overlay {
    display: none;
    position: fixed;
    /* Ensure it's fixed and covers the whole screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 335%;
    background: rgba(0, 0, 0, 0.7);
    /* Semi-transparent dark overlay */
    z-index: 9999998;
    /* Overlay just below the modal */
}

/* Make sure this works well on mobile */
@media screen and (max-width: 500px) {
    #popup iframe {
        width: 100%;
        height: 100%;
    }
}

#page .product_description_header {
    z-index: 1
}

button#popupButton.my-button {
    border-radius: 16px;
    background-color: #2f2b43;
    color: white;
    border-color: #2f2b43;
    padding: 6px;
    font-size: 15px
}

button#popupButton.my-button:hover {
    background-color: #f4f4f5;
    transition-delay: 0.2;
    border-color: #f4f4f5;
    color: black;
}
/* Popup Modal */
#popup1 {
    display: none;
    position: fixed;
    top: 10px;
    left: 130px;
    width: 80%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9999999;
    overflow: auto; /* Fix: allow scrolling if content overflows */
    justify-content: center;
    align-items: center;
}

/* Iframe inside the modal */
#popup1 iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Close Button */
#popup1 .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: black;
}

/* Overlay (background behind the modal) */
#overlay1 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999998;
}

/* Mobile Responsiveness */
@media screen and (max-width: 500px) {
    #popup1 {
        top: 0;
        left: 0;
        width: 100%;
    }

    #popup1 iframe {
        height: 100%;
    }
}

/* Fix for other overlapping content */
#page .product_description_header {
    z-index: 1;
}

/* Button Styling */
button#popupButton1.my-button {
    border-radius: 16px;
    background-color: #2f2b43;
    color: white;
    border: 1px solid #2f2b43;
    padding: 6px 12px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button#popupButton1.my-button:hover {
    background-color: #f4f4f5;
    border-color: #f4f4f5;
    color: black;
}
