/* =========================
   STATUS POPUP
========================= */

.status-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.35);

    animation: status-popup-backdrop-in 0.25s ease;
}

.status-popup-card {
    width: 100%;
    max-width: 340px;
    padding: 30px 26px;

    background: #ffffff;
    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.22);

    animation: status-popup-card-in 0.25s ease;
}

.status-popup-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    border-radius: 50%;

    font-size: 38px;
    line-height: 1;
}

.status-popup-icon-success {
    background: #22c55e;
}

.status-popup-icon-error {
    background: #ef4444;
}

.status-popup-title {
    margin-bottom: 9px;

    color: #111827;

    font-size: 21px;
    font-weight: 700;
}

.status-popup-message {
    margin: 0;

    color: #8b95a7;

    font-size: 14px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

.status-popup.is-hiding {
    animation:
        status-popup-backdrop-out
        0.3s
        ease
        forwards;
}

.status-popup.is-hiding .status-popup-card {
    animation:
        status-popup-card-out
        0.3s
        ease
        forwards;
}


/* =========================
   ANIMATION
========================= */

@keyframes status-popup-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes status-popup-backdrop-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes status-popup-card-in {
    from {
        opacity: 0;
        transform:
            translateY(12px)
            scale(0.9);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes status-popup-card-out {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.92);
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 576px) {
    .status-popup {
        padding: 16px;
    }

    .status-popup-card {
        max-width: 310px;
        padding: 28px 22px;
        border-radius: 18px;
    }

    .status-popup-icon {
        width: 62px;
        height: 62px;

        font-size: 34px;
    }

    .status-popup-title {
        font-size: 20px;
    }

    .status-popup-message {
        font-size: 13px;
    }
}