/**
 * popup-style.css
 * Styling for the overlay and the modal box.
 */

/* 1. Initial State: Hidden and Full Overlay */
#scroll-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 99999; /* Ensure it's on top of all elements */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
}

/* 2. Active State: Visible */
#scroll-popup.active {
    display: flex;
    opacity: 1;
}

/* 3. Popup Content Box */
#popup-content-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* 4. Exit Button */
#close-popup-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #999;
    line-height: 1;
    padding: 5px;
}
#close-popup-btn:hover {
    color: #333;
}

/* 5. Content Layout */
#popup-image {
    width: 100%;
    object-fit: contain; /* Use contain for dynamic images */
    border-radius: 8px;
    margin-bottom: 15px;
}

#popup-cta {
    display: block;
    padding: 12px 20px;
    margin-top: 20px;
    background-color: #5B21B6; /* A nice purple for WooCommerce */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.2s, transform 0.1s;
    text-transform: uppercase;
}
#popup-cta:hover {
    background-color: #4C19A0;
    transform: translateY(-1px);
}
