/* ============================================================
   FNLM Push Notifications — barra permesso + stato
   ============================================================ */

.fnlm-push-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #003580;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    z-index: 99999;
    font-size: .9rem;
    font-family: inherit;
    box-shadow: 0 -4px 16px rgba(0,0,0,.2);
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}

.fnlm-push-bar.visible {
    transform: translateY(0);
}

.fnlm-push-bar-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.fnlm-push-bar-actions {
    display: flex;
    gap: 10px;
}

.fnlm-push-bar-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
}

.fnlm-push-bar-btn:hover { opacity: .85; }

.fnlm-push-bar-btn--accept {
    background: #fff;
    color: #003580;
}

.fnlm-push-bar-btn--dismiss {
    background: transparent;
    color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.3);
}

@media (max-width: 480px) {
    .fnlm-push-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .fnlm-push-bar-actions {
        width: 100%;
        justify-content: center;
    }
    .fnlm-push-bar-btn {
        flex: 1;
    }
}

/* ── Pulsante shortcode [fnlm_subscribe_push] ─────────────────────────── */
.fnlm-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background .2s, opacity .2s, transform .1s;
}
.fnlm-sub-btn:active {
    transform: scale(.97);
}

/* Stato: attivazione in corso */
.fnlm-sub-btn--loading {
    opacity: .75;
    cursor: wait;
}

/* Stato: già iscritto */
.fnlm-sub-btn--done {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
    cursor: default;
    opacity: 1;
}
.fnlm-sub-btn--done:hover {
    background: #15803d !important;
}

/* Stato: permesso bloccato dal browser */
.fnlm-sub-btn--denied {
    background: #6b7280 !important;
    border-color: #6b7280 !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: .85;
}
