/* Popup BMW — Frontend Styles */

.spm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spm-box {
    position: relative;
    border-radius: 14px;
    padding: 36px 40px 32px;
    max-width: 520px;
    width: 92%;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    max-height: 80vh;
    overflow-y: auto;
    animation: spmSlideUp .35s cubic-bezier(.4,0,.2,1);
}

@keyframes spmSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.spm-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: .5;
    transition: opacity .2s;
    padding: 4px 8px;
    line-height: 1;
    z-index: 1;
}
.spm-close:hover { opacity: 1; }

.spm-content {
    margin-bottom: 20px;
    line-height: 1.7;
}
.spm-content h2, .spm-content h3 { margin-top: 0; }

.spm-btn-close {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter .2s, transform .1s;
}
.spm-btn-close:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.spm-btn-close:active { transform: translateY(0); }

/* ── Bubble (minimized) ── */
.spm-bubble {
    position: fixed;
    z-index: 999998;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    user-select: none;
    white-space: nowrap;
    line-height: 1.4;
    border: none;
    outline: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.spm-bubble:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.spm-bubble:active { transform: scale(.96); }

/* Posisi bubble */
.spm-bubble-bottom-right { bottom: 28px; right: 28px; }
.spm-bubble-bottom-left  { bottom: 28px; left:  28px; }
.spm-bubble-top-right    { top:    90px; right: 28px; }
.spm-bubble-top-left     { top:    90px; left:  28px; }

@keyframes spmBubblePop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
