/* Smart Popup Pro – frontend styles */
.spp-popup-wrap {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* ── Positions ──────────────────────────────────────── */
.spp-popup-wrap[data-pos="top"]    { align-items: flex-start; padding-top: 60px; }
.spp-popup-wrap[data-pos="bottom"] { align-items: flex-end; padding-bottom: 40px; }

/* ── Box ────────────────────────────────────────────── */
.spp-popup-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,.28);
    width: 100%;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

/* ── Close ──────────────────────────────────────────── */
.spp-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.spp-close:hover { background: rgba(0,0,0,.8); }

/* ── Image ──────────────────────────────────────────── */
.spp-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Content ────────────────────────────────────────── */
.spp-content {
    padding: 28px 32px 20px;
    text-align: center;
}
.spp-headline {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
}
.spp-body {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Button ─────────────────────────────────────────── */
.spp-btn-wrap {
    padding: 16px 32px 28px;
    text-align: center;
}
.spp-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--btn-bg, #2563eb);
    color: var(--btn-color, #fff) !important;
    border-radius: var(--btn-radius, 6px);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity .2s, transform .15s;
    cursor: pointer;
}
.spp-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ── Animations ─────────────────────────────────────── */
.spp-anim-fade   .spp-popup-box { animation: sppFade .3s ease; }
.spp-anim-slide  .spp-popup-box { animation: sppSlide .35s ease; }
.spp-anim-zoom   .spp-popup-box { animation: sppZoom .3s ease; }
.spp-anim-bounce .spp-popup-box { animation: sppBounce .5s cubic-bezier(.36,.07,.19,.97); }

@keyframes sppFade   { from { opacity:0 } to { opacity:1 } }
@keyframes sppSlide  { from { opacity:0; transform:translateY(-40px) } to { opacity:1; transform:none } }
@keyframes sppZoom   { from { opacity:0; transform:scale(.7) } to { opacity:1; transform:scale(1) } }
@keyframes sppBounce { 0%,100%{ transform:translateY(0) } 40%{ transform:translateY(-18px) } 60%{ transform:translateY(-9px) } }

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width:600px) {
    .spp-content { padding: 20px 20px 14px; }
    .spp-btn-wrap { padding: 12px 20px 22px; }
    .spp-headline { font-size: 1.25rem; }
}
