/* Lion Popup - front-end widget. Also loaded on the admin Settings page for
   the live preview, so these rules never assume they're the only thing on
   the page (no resets on body/html, no !important beyond what's needed to
   beat a theme's own styles on the public site). */

.lion-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 336px;
    max-width: calc(100vw - 32px);
    background: #0f172a;
    color: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    z-index: 999999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
    box-sizing: border-box;
}
.lion-popup * { box-sizing: border-box; }
.lion-popup.lion-popup-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Admin live-preview variant: static instead of fixed, no entrance delay. */
.lion-popup.lion-popup-preview {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    width: 100%;
    max-width: 336px;
}

.lion-popup-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; color: #94a3b8; font-size: 20px;
    line-height: 1; cursor: pointer; padding: 4px;
}
.lion-popup-close:hover { color: #fff; }

.lion-popup-headline { margin: 0 0 6px; font-size: 18px; font-weight: 800; padding-right: 20px; }
.lion-popup-description { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: #94a3b8; }

.lion-popup-input {
    display: block; width: 100%; padding: 11px 13px; margin-bottom: 10px;
    border-radius: 9px; border: 1px solid #334155; background: #1e293b; color: #fff;
    font-size: 14px; font-family: inherit;
}
.lion-popup-input::placeholder { color: #64748b; }
.lion-popup-input:focus { outline: none; border-color: #3b82f6; }

.lion-popup-submit {
    display: block; width: 100%; padding: 12px; border: none; border-radius: 9px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4); color: #fff;
    font-weight: 700; font-size: 14px; font-family: inherit; cursor: pointer;
}
.lion-popup-submit:hover { opacity: 0.92; }
.lion-popup-submit:disabled { opacity: 0.6; cursor: default; }

.lion-popup-error { margin: 10px 0 0; font-size: 12px; color: #f87171; min-height: 14px; }

.lion-popup-success-state { text-align: center; padding: 8px 0; }
.lion-popup-success-icon { font-size: 30px; display: block; margin-bottom: 8px; }
.lion-popup-success-text { margin: 0; font-size: 14px; color: #fff; font-weight: 600; }

@media (max-width: 480px) {
    .lion-popup { right: 16px; bottom: 16px; left: 16px; width: auto; }
}
