/* WooCommerce Growth Engine — Popup Styles */

#wge-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}
#wge-popup-overlay.visible { opacity: 1; }

#wge-popup-box {
    position: relative;
    display: flex;
    width: 620px;
    max-width: 95vw;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
#wge-popup-box.visible { transform: scale(1) translateY(0); }

#wge-popup-left {
    width: 45%;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}
#wge-popup-left::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: rgba(255,215,0,0.08);
    border-radius: 50%;
    top: -60px; right: -60px;
}
.wge-popup-badge {
    background: #ffd700;
    color: #1a1a2e;
    font-size: 28px;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1;
}
#wge-popup-left h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.1;
}
#wge-popup-left p {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

#wge-popup-right {
    flex: 1;
    background: #fff;
    padding: 40px 36px;
}
#wge-popup-right h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}
#wge-popup-right > p {
    margin: 0 0 24px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}
#wge-popup-right input {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.2s;
}
#wge-popup-right input:focus { border-color: #1a1a2e; }

#wge-popup-submit {
    width: 100%;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}
#wge-popup-submit:hover { background: #0f3460; transform: translateY(-1px); }
#wge-popup-submit:active { transform: translateY(0); }

.wge-privacy { color: #aaa; font-size: 11px; margin: 8px 0 0; text-align: center; }

#wge-popup-close {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    z-index: 10;
    transition: background 0.2s;
}
#wge-popup-close:hover { background: rgba(255,255,255,0.3); }

#wge-popup-success { text-align: center; padding: 20px 0; }
.wge-success-icon { font-size: 48px; margin-bottom: 16px; }
#wge-popup-success h4 { color: #1a1a2e; font-size: 18px; margin: 0 0 8px; }
#wge-popup-success p { color: #666; font-size: 14px; margin: 0; }

@media (max-width: 600px) {
    #wge-popup-box { flex-direction: column; width: 95vw; }
    #wge-popup-left { width: 100%; padding: 28px 24px; flex-direction: row; align-items: center; gap: 16px; }
    #wge-popup-left h2 { font-size: 20px; margin: 0; }
    .wge-popup-badge { margin: 0; }
    #wge-popup-right { padding: 28px 24px; }
}
