/* Mondo Presepi — PWA UI (banner installazione + modale notifiche) */

.mppwa-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 99999;
    max-width: 540px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: inherit;
    animation: mppwa-slide .35s ease;
}
@keyframes mppwa-slide { from { transform: translateY(130%); opacity: 0; } to { transform: none; opacity: 1; } }

.mppwa-banner .mppwa-appicon { width: 48px; height: 48px; border-radius: 10px; flex: 0 0 auto; }
.mppwa-banner .mppwa-b-body { flex: 1 1 auto; min-width: 0; }
.mppwa-banner .mppwa-b-title { font-weight: 700; color: #084c95; font-size: 15px; line-height: 1.2; }
.mppwa-banner .mppwa-b-text { font-size: 13px; color: #444; margin-top: 3px; line-height: 1.35; }
.mppwa-banner .mppwa-b-actions { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }

.mppwa-share {
    display: inline-flex;
    width: 20px; height: 20px;
    vertical-align: -4px;
    color: #084c95;
}
.mppwa-plus { font-weight: 700; color: #084c95; }

.mppwa-btn {
    background: #084c95;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 9px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.mppwa-btn:hover { background: #063a73; }
.mppwa-btn-ghost { background: transparent; color: #666; font-weight: 600; }
.mppwa-btn-ghost:hover { background: #f2f2f2; }
.mppwa-close {
    background: transparent; border: 0; color: #999;
    font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px;
    align-self: flex-start;
}

/* Modale notifiche */
.mppwa-modal-ov {
    position: fixed; inset: 0; z-index: 100000;
    background: rgba(0, 0, 0, .5);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: mppwa-fade .25s ease;
}
@keyframes mppwa-fade { from { opacity: 0; } to { opacity: 1; } }
.mppwa-modal {
    background: #fff; border-radius: 16px;
    max-width: 400px; width: 100%; padding: 26px 24px;
    text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    animation: mppwa-slide .3s ease;
}
.mppwa-modal .mppwa-appicon { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 14px; }
.mppwa-modal h3 { color: #084c95; font-size: 19px; margin: 0 0 8px; font-weight: 800; }
.mppwa-modal p { color: #555; font-size: 14px; margin: 0 0 20px; line-height: 1.45; }
.mppwa-modal .mppwa-m-actions { display: flex; flex-direction: column; gap: 10px; }
.mppwa-modal .mppwa-btn { width: 100%; padding: 12px; }

@media (max-width: 480px) {
    .mppwa-banner { flex-wrap: wrap; }
    .mppwa-banner .mppwa-b-actions { width: 100%; justify-content: flex-end; }
}

/* Campanella flottante opt-in */
.mppwa-bell {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99990;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    color: #084c95;
    border: 2px solid #084c95;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, background .2s ease, color .2s ease;
    animation: mppwa-slide .35s ease;
}
.mppwa-bell:hover { transform: scale(1.07); }
.mppwa-bell svg { width: 26px; height: 26px; }
.mppwa-bell.mppwa-bell-on {
    background: #084c95;
    color: #fff;
    border-color: #084c95;
}
.mppwa-bell .mppwa-bell-dot {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #e0b100;
    border: 2px solid #084c95;
    display: none;
}
.mppwa-bell.mppwa-bell-on .mppwa-bell-dot { display: block; }
.mppwa-bell-tip {
    position: fixed;
    right: 80px;
    bottom: 28px;
    z-index: 99990;
    background: #333;
    color: #fff;
    font-size: 13px;
    padding: 7px 11px;
    border-radius: 8px;
    max-width: 220px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    animation: mppwa-fade .2s ease;
}
