/* ═══ ZFU Push – DSGVO Consent Popup ═══ */

/* Design Tokens (mirrored from app.css) */
#zfupush-popup {
    --p:    #6c63ff;
    --p2:   #574fd6;
    --pale: #eeeaff;
    --glow: rgba(108,99,255,.18);
    --bg:   #f4f4f8;
    --sur:  #ffffff;
    --txt:  #1e1b30;
    --mid:  #4e4a6a;
    --dim:  #9896b0;
    --bdr:  rgba(108,99,255,.14);
    --shd:  rgba(70,50,180,.12);
    --r:    22px;
}

/* Overlay */
.zfupush-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 env(safe-area-inset-bottom, 0);
    font-family: 'DM Sans', system-ui, sans-serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s;
}
.zfupush-popup.is-visible {
    opacity: 1;
    pointer-events: all;
}

/* Backdrop */
.zfupush-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 27, 48, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Box */
.zfupush-popup__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: var(--sur);
    border-radius: var(--r) var(--r) 0 0;
    box-shadow: 0 -12px 48px var(--shd);
    padding: 32px 28px 36px;
    border: 1px solid var(--bdr);
    border-bottom: none;
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.32,0,.15,1);
}
.zfupush-popup.is-visible .zfupush-popup__box {
    transform: translateY(0);
}

/* Close button */
.zfupush-popup__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--pale);
    color: var(--mid);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.zfupush-popup__close:hover { background: rgba(108,99,255,.22); }

/* Icon */
.zfupush-popup__icon {
    font-size: 38px;
    text-align: center;
    margin-bottom: 10px;
    display: block;
}

/* Title */
.zfupush-popup__title {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 600;
    color: var(--txt);
    text-align: center;
    margin: 0 0 8px;
}

/* Body text */
.zfupush-popup__text {
    font-size: 14px;
    color: var(--mid);
    text-align: center;
    margin: 0 0 10px;
    line-height: 1.55;
}

/* DSGVO fine print */
.zfupush-popup__dsgvo {
    font-size: 11px;
    color: var(--dim);
    text-align: center;
    margin: 0 0 22px;
    line-height: 1.5;
}
.zfupush-popup__link { color: var(--p); text-decoration: underline; }

/* Actions */
.zfupush-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Shared button base (mirrors app.css) */
.zfupush-popup .zfu-btn-primary,
.zfupush-popup .zfu-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: filter .2s, transform .15s;
    font-family: inherit;
}
.zfupush-popup .zfu-btn-primary {
    background: linear-gradient(140deg, var(--p), var(--p2));
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px var(--glow);
}
.zfupush-popup .zfu-btn-primary:hover  { filter: brightness(1.08); }
.zfupush-popup .zfu-btn-primary:active { transform: scale(.97); }
.zfupush-popup .zfu-btn-ghost {
    background: transparent;
    border: 1.5px solid var(--bdr);
    color: var(--mid);
}
.zfupush-popup .zfu-btn-ghost:hover { background: var(--pale); }

/* Status message */
.zfupush-popup__status {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--mid);
    background: var(--pale);
    border-radius: 10px;
    padding: 10px 14px;
}

/* ── Shortcode Panel ──────────────────────────────────── */
.zfupush-sc-wrap { padding: 20px 0; }

.zfupush-card {
    background: var(--sur, #fff);
    border: 1px solid rgba(108,99,255,.14);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(70,50,180,.10);
    padding: 32px 28px;
    max-width: 480px;
    margin: 0 auto;
}
.zfupush-card__icon  { font-size: 36px; text-align: center; margin-bottom: 10px; display: block; }
.zfupush-card__title { font-size: 20px; font-weight: 600; text-align: center; color: var(--txt, #1e1b30); margin: 0 0 6px; }
.zfupush-card__sub   { font-size: 13px; color: var(--dim, #9896b0); text-align: center; margin: 0 0 20px; }

/* Stats */
.zfupush-stats {
    background: rgba(108,99,255,.07);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--mid, #4e4a6a);
}

/* Result */
.zfupush-result {
    margin-top: 14px;
    background: rgba(108,99,255,.07);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    text-align: center;
}

/* Field overrides inside shortcode */
.zfupush-sc-wrap .zfu-field-group { margin-bottom: 12px; }
.zfupush-sc-wrap .zfu-field-label { display: block; font-size: 12px; font-weight: 500; color: var(--mid,#4e4a6a); margin-bottom: 5px; }
.zfupush-sc-wrap .zfu-input {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1.5px solid rgba(108,99,255,.14); background: var(--bg,#f4f4f8);
    color: var(--txt,#1e1b30); font-size: 14px; outline: none;
    transition: border-color .2s; box-sizing: border-box;
    font-family: inherit;
}
.zfupush-sc-wrap .zfu-input:focus { border-color: #6c63ff; }
.zfupush-sc-wrap .zfu-textarea { resize: vertical; min-height: 80px; }
.zfupush-sc-wrap .zfu-btn-primary {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 13px 20px; border-radius: 14px; border: none;
    background: linear-gradient(140deg,#6c63ff,#574fd6); color: #fff;
    font-size: 14px; font-weight: 500; cursor: pointer;
    box-shadow: 0 6px 20px rgba(108,99,255,.22);
    transition: filter .2s, transform .15s; margin-top: 4px;
    font-family: inherit;
}
.zfupush-sc-wrap .zfu-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.zfupush-sc-wrap .zfu-btn-ghost {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 11px 20px; border-radius: 14px;
    border: 1.5px solid rgba(108,99,255,.14); background: transparent;
    color: #4e4a6a; font-size: 13px; cursor: pointer;
    transition: background .2s; font-family: inherit;
}
.zfupush-sc-wrap .zfu-btn-ghost:hover { background: #eeeaff; }
.zfupush-sc-wrap .zfu-error { font-size: 12px; color: #e04060; min-height: 16px; margin-top: 4px; display: block; }

/* Hidden panel */
.zfupush-panel--hidden { display: none; }

/* Notice */
.zfupush-notice {
    padding: 12px 16px; border-radius: 12px; font-size: 13px; margin-bottom: 16px;
}
.zfupush-notice--warning { background: #fff8e1; border: 1px solid #ffe082; color: #7a5c00; }
