/* ── Popup base ────────────────────────────────────────────────────────────── */
#mpush-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    width: 340px;
    max-width: calc(100vw - 32px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Animações ─────────────────────────────────────────────────────────────── */
.mpush-popup--hidden  { opacity: 0; transform: translateX(120%); pointer-events: none; }

.mpush-popup--visible {
    animation: mpush-slide-in .45s cubic-bezier(.22,.68,0,1.2) forwards;
}

.mpush-popup--out {
    animation: mpush-slide-out .4s cubic-bezier(.55,0,1,.45) forwards;
}

@keyframes mpush-slide-in {
    from { opacity: 0; transform: translateX(120%); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes mpush-slide-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(120%); }
}

/* ── Card interno ──────────────────────────────────────────────────────────── */
.mpush-popup__inner {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.10);
    overflow: hidden;
    position: relative;
}

/* ── Imagem ────────────────────────────────────────────────────────────────── */
.mpush-popup__img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

/* ── Corpo ─────────────────────────────────────────────────────────────────── */
.mpush-popup__body {
    padding: 18px 20px 20px;
}

.mpush-popup__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.mpush-popup__text {
    margin: 0 0 16px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* ── Botões ────────────────────────────────────────────────────────────────── */
.mpush-popup__btns {
    display: flex;
    gap: 10px;
}

.mpush-btn {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

.mpush-btn:hover  { opacity: .88; transform: translateY(-1px); }
.mpush-btn:active { transform: translateY(0); }

.mpush-btn--accept {
    background: #2271b1;
    color: #fff;
}

.mpush-btn--decline {
    background: #f0f0f0;
    color: #444;
}

/* ── Botão fechar ──────────────────────────────────────────────────────────── */
.mpush-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 13px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}

.mpush-popup__close:hover { background: rgba(0,0,0,.65); }

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    #mpush-popup {
        top: 16px;
        bottom: auto;
        right: 12px;
        left: auto;
        width: 280px;
        max-width: calc(100vw - 24px);
    }

    .mpush-popup__inner { border-radius: 12px; }

    .mpush-popup__img   { height: 100px; }

    .mpush-popup__body  { padding: 12px 14px 14px; }

    .mpush-popup__title { font-size: 15px; margin-bottom: 4px; }

    .mpush-popup__text  { font-size: 14px; margin-bottom: 12px; }

    .mpush-btn          { padding: 9px 10px; font-size: 13px; }

    .mpush-popup__close { width: 22px; height: 22px; font-size: 11px; line-height: 22px; }
}
