/* ==========================================
   B2B - AGGIORNAMENTO APPLICAZIONE
========================================== */

.b2b-update-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.b2b-update-modal {
    width: 100%;
    max-width: 440px;

    padding: 36px 30px;

    background: #ffffff;
    border-radius: 18px;

    text-align: center;

    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);

    animation: b2bUpdateEnter 0.3s ease-out;
}

.b2b-update-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin: 0 auto 24px;

    border-radius: 50%;

    background: #ffefee;
    color: #eb2c25;

    font-size: 30px;
}

.b2b-update-modal h3 {
    margin: 0 0 14px;

    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;

    color: #172033;
}

.b2b-update-modal p {
    margin: 0 0 22px;

    font-size: 14px;
    line-height: 1.7;

    color: #64748b;
}

.b2b-update-version {
    display: inline-block;

    margin-bottom: 25px;
    padding: 7px 14px;

    background: #f1f5f9;
    border-radius: 8px;

    font-size: 12px;
    font-weight: 500;

    color: #64748b;
}

.b2b-update-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-height: 48px;

    padding: 12px 20px;

    border: 0;
    border-radius: 10px;

    background: #eb2c25;
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    transition: background 0.2s ease;
}

.b2b-update-button:hover {
    background: #bb231e;
}

.b2b-update-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

@keyframes b2bUpdateEnter {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 576px) {
    .b2b-update-overlay {
        padding: 16px;
    }

    .b2b-update-modal {
        padding: 30px 22px;
        border-radius: 14px;
    }

    .b2b-update-icon {
        width: 62px;
        height: 62px;
        font-size: 26px;
    }

    .b2b-update-modal h3 {
        font-size: 20px;
    }

    .b2b-update-modal p {
        font-size: 13px;
    }
}