/*
 * Styles for the WooCommerce exit intent popup.
 *
 * These rules style the full-screen overlay and inner modal that appears
 * when a visitor attempts to leave the checkout page with items in their cart.
 * Adjust margins, colors and sizing as needed to better match your site’s
 * design. The overlay uses a high z-index to ensure it appears above all
 * other content.
 */

/* Overlay covering the entire viewport */
#woo-exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal container */
#woo-exit-popup-overlay .woo-exit-popup-modal {
    background: #ffffff;
    color: #333333;
    border-radius: 16px;
    padding: 25px 20px 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    position: relative;
}

/* Heading */
.woo-exit-popup-heading {
    margin: 0 0 10px;
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 600;
    color: #111111;
}

/* Main message */
.woo-exit-popup-message {
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.5;
    color: #444444;
}

/* Close button (X) */
.woo-exit-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #888888;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.woo-exit-popup-close:hover {
    color: #333333;
}

/* Primary button (Continue to checkout) */
.woo-exit-popup-btn-primary {
    background: #e60023; /* red */
    color: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    margin-bottom: 10px;
}

.woo-exit-popup-btn-primary:hover {
    background: #cc001e;
}

/* Secondary button (Leave anyway) */
.woo-exit-popup-btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 24px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    margin-bottom: 20px;
}

.woo-exit-popup-btn-secondary:hover {
    background: #f7f7f7;
}

/* Secondary message and contact link */
.woo-exit-popup-secondary {
    font-size: 0.85rem;
    color: #333333;
    margin: 0;
}

.woo-exit-popup-secondary a {
    color: #0073aa;
    text-decoration: underline;
}