/* --- BUTTONS & ALIGNMENT --- */
.wpeol-trigger, .wpeol-logout-btn { 
    display: inline-block; /* Respects container alignment (text-align) */
    width: auto; 
    padding: 12px 24px; 
    border: none; 
    cursor: pointer; 
    border-radius: 4px; 
    font-size: 16px; 
    text-align: center;
    text-decoration: none !important;
    line-height: 1.2;
}

/* --- POPUP / MODAL TRANSITIONS --- */
.wpeol-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); z-index: 99999; 
    display: flex; align-items: center; justify-content: center; 
    
    /* Transition States */
    opacity: 0; visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease; 
}

.wpeol-overlay.active { 
    opacity: 1; visibility: visible; 
}

/* The Box */
.wpeol-modal {
    width: 90%; 
    max-width: 400px; 
    background: #fff; 
    padding: 40px 30px;
    border-radius: 12px; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.2); 
    text-align: center;
    font-family: 'Segoe UI', sans-serif; 
    position: relative; 
    box-sizing: border-box;

    /* Zoom Transition */
    transform: scale(0.95); 
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
}

.wpeol-overlay.active .wpeol-modal {
    transform: scale(1);
    opacity: 1;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 480px) {
    .wpeol-modal {
        padding: 30px 20px;
        width: 95%;
    }
    .wpeol-logo { max-height: 50px; }
}

/* --- INLINE CONTAINER --- */
.wpeol-container {
    max-width: 400px; margin: 0 auto; background: #fff; padding: 40px 30px;
    border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); text-align: center;
    font-family: 'Segoe UI', sans-serif; position: relative; box-sizing: border-box;
}

/* --- LOGGED IN CENTER WRAPPER --- */
.wpeol-wrapper-center {
    display: flex; justify-content: center; align-items: center;
    min-height: 40vh; width: 100%; padding: 20px; box-sizing: border-box;
}
.wpeol-logged-in-card { max-width: 450px; width: 100%; }

/* --- FORM ELEMENTS --- */
.wpeol-logo { max-height: 60px; margin-bottom: 10px; display:inline-block; }
.wpeol-input { width: 100%; padding: 14px 16px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size:16px; display: block; }

.wpeol-btn-primary { width: 100%; padding: 14px; background: #3b82f6; color: #fff; border: none; cursor: pointer; border-radius: 6px; font-weight: 600; font-size:15px; text-transform: uppercase; transition: background 0.2s; display: block; }
.wpeol-btn-primary:disabled { opacity: 0.7; cursor: wait; }

.wpeol-btn-secondary { width: 100%; padding: 14px; background: transparent; color: #3b82f6; border: 2px solid #3b82f6; cursor: pointer; border-radius: 6px; font-weight: 600; font-size:14px; text-transform: uppercase; display: block; margin-top: 10px;}
.wpeol-btn-secondary.wpeol-disabled, .wpeol-btn-secondary:disabled { border-color: #d1d5db !important; background-color: #d1d5db !important; color: #fff !important; cursor: not-allowed !important; pointer-events: none; }

.wpeol-close { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #888; transition: color 0.2s;}
.wpeol-close:hover { color: #333; }

/* NOTICES */
.wpeol-notice { padding: 12px 16px; border-radius: 6px; font-size: 14px; display: flex; align-items: center; text-align: left; margin-bottom: 20px; line-height: 1.4; width: 100%; box-sizing: border-box; }
.wpeol-notice-icon { margin-right: 12px; display: flex; align-items: center; flex-shrink: 0; }
.wpeol-notice-icon svg { width: 20px; height: 20px; }
.wpeol-notice.success { background-color: #ecfdf5; border: 1px solid #d1fae5; color: #065f46; }
.wpeol-notice.success svg { fill: #059669; }
.wpeol-notice.error { background-color: #fef2f2; border: 1px solid #fee2e2; color: #991b1b; }
.wpeol-notice.error svg { fill: #dc2626; }
.wpeol-footer { margin-top: 25px; font-size: 13px; border-top: 1px solid #f3f4f6; padding-top: 15px; }
.wpeol-footer a { margin: 0 10px; color: #3b82f6; text-decoration: none; }