/* General helper class */
.eop-hidden {
    display: none !important;
}

/* Modal Background Overlay */
#eop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* NEW: Click overlay to close */
}

/* Modal Content Box */
#eop-modal-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    font-family: Arial, sans-serif;
    position: relative; /* NEW: For positioning close button */
    cursor: default; /* NEW: Don't close when clicking content */
}

/* NEW: Popup Close Button */
.eop-close-btn {
    position: absolute;
    top: -5px;
    right: 5px;
    font-size: 30px;
    font-weight: bold;
    color: #888;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}
.eop-close-btn:hover {
    color: #000;
}


#eop-modal-content h2 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

#eop-modal-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

/* Form Styling */
#eop-email-form {
    display: flex;
    flex-direction: column;
}

#eop-email-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box; 
}

#eop-email-form button,
#eop-ok-btn {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #0073aa; 
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#eop-email-form button:hover,
#eop-ok-btn:hover {
    background-color: #005a87;
}

/* Coupon Code Box */
#eop-coupon-box {
    display: flex;
    margin-bottom: 20px;
}

#eop-coupon-code {
    flex-grow: 1;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: #f4f4f4;
    border: 2px dashed #ccc;
    border-right: none;
    border-radius: 5px 0 0 5px;
    color: #333;
}

#eop-copy-btn {
    padding: 12px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #333;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

#eop-copy-btn:hover {
    background-color: #555;
}

/* NEW: Trigger Tab Styling */
#eop-trigger-tab {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0073aa;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    z-index: 99997;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: bottom 0.3s;
}
#eop-trigger-tab:hover {
    background-color: #005a87;
}

#eop-trigger-tab span {
    margin-right: 10px;
}

#eop-trigger-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    padding: 0 5px;
    cursor: pointer;
    opacity: 0.7;
}
#eop-trigger-close-btn:hover {
    opacity: 1;
}