/* Smart Popup Pro – Frontend Styles */

.spp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 999999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    animation: sppFadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

@keyframes sppFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.spp-modal {
    position: relative;
    width: 100%;
    max-width: 780px;
    max-height: 92vh;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,.65);
    animation: sppSlideUp 0.35s cubic-bezier(.34,1.36,.64,1);
}

@keyframes sppSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.spp-close {
    position: absolute;
    top: 12px; right: 14px;
    width: 32px; height: 32px;
    background: rgba(0,0,0,.45);
    color: #fff; border: none; border-radius: 50%;
    font-size: 18px; line-height: 1;
    cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .15s;
}
.spp-close:hover { background: rgba(0,0,0,.7); transform: rotate(90deg); }

/* Inner layouts */
.spp-inner { display: flex; min-height: 300px; }
.spp-inner.spp-layout-text_only .spp-image-col { display: none !important; }

.spp-image-col {
    width: 45%;
    flex-shrink: 0;
    overflow: hidden;
}
.spp-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spp-text-col {
    flex: 1;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spp-heading {
    margin: 0 0 14px;
    line-height: 1.2;
}
.spp-subtext {
    margin: 0 0 20px;
    line-height: 1.6;
}
.spp-layer {
    margin: 0 0 10px;
    line-height: 1.5;
}

.spp-btn {
    display: inline-block;
    padding: 13px 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    margin-top: 8px;
    align-self: flex-start;
}
.spp-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 600px) {
    .spp-inner { flex-direction: column; }
    .spp-image-col { width: 100%; height: 200px; }
    .spp-text-col  { padding: 28px 22px; }
    .spp-heading   { font-size: 24px !important; }
}
