/* =========================================================
   AIRSWAP PURCHASE SUCCESS MODAL
========================================================= */

.purchase-overlay {
    position: fixed;
    inset: 0;

    z-index: 99999;

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

    padding: 15px;

    background: rgba(16, 28, 45, 0.48);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    font-family:
        "Livvic",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* =========================================================
   MODAL
========================================================= */

.purchase-modal {
    position: relative;

    width: 100%;
    max-width: 390px;

    padding: 30px 25px 24px;

    border-radius: 22px;

    background: #ffffff;

    text-align: center;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.20);

    animation: purchaseModalShow .22s ease-out;
}


@keyframes purchaseModalShow {

    from {
        opacity: 0;
        transform: scale(.94) translateY(12px);
    }

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


/* =========================================================
   SUCCESS ICON
========================================================= */

.purchase-success {
    width: 76px;
    height: 76px;

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

    margin: 0 auto 14px;

    border-radius: 50%;

    background: #e9f9ef;
}


.purchase-success-ring {
    width: 56px;
    height: 56px;

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

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #28bd5b,
            #159643
        );

    color: #ffffff;

    font-size: 25px;

    box-shadow:
        0 5px 15px rgba(32, 165, 72, .22);
}


/* =========================================================
   HEADING
========================================================= */

.purchase-modal h3 {
    margin: 0;

    color: #171878;

    font-size: 23px;

    line-height: 1.2;

    font-weight: 800;
}


.purchase-message {
    margin: 7px 0 20px;

    color: #718096;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   DETAILS BOX
========================================================= */

.purchase-details {
    overflow: hidden;

    padding: 3px 15px;

    border: 1px solid #d8efe1;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #f1fcf5,
            #f8fffa
        );

    text-align: left;
}


/* =========================================================
   DETAIL ROW
========================================================= */

.purchase-detail {
    display: flex;
    align-items: center;

    min-height: 76px;

    gap: 12px;
}


.purchase-detail + .purchase-detail {
    border-top: 1px solid #dceee3;
}


/* =========================================================
   DETAIL ICON
========================================================= */

.purchase-detail-icon {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

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

    border-radius: 50%;

    background: #ffffff;

    color: #20a548;

    font-size: 18px;

    box-shadow:
        0 3px 10px rgba(20, 80, 40, .06);
}


/* =========================================================
   DETAIL TEXT
========================================================= */

.purchase-detail-info {
    display: flex;
    flex-direction: column;

    min-width: 0;
}


.purchase-detail-info span {
    color: #718096;

    font-size: 9px;

    font-weight: 500;
}


.purchase-detail-info strong {
    margin-top: 4px;

    color: #171f42;

    font-size: 13px;

    font-weight: 700;

    word-break: break-word;
}


/* =========================================================
   OK BUTTON
========================================================= */

.purchase-ok {
    width: 100%;
    height: 48px;

    margin-top: 18px;

    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #20b356,
            #159743
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(32, 165, 72, .18);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.purchase-ok:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(32, 165, 72, .24);
}


.purchase-ok:active {
    transform: translateY(0);
}


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

@media (max-width: 480px) {

    .purchase-overlay {
        padding: 14px;
    }


    .purchase-modal {
        max-width: 340px;

        padding: 25px 17px 18px;

        border-radius: 19px;
    }


    .purchase-success {
        width: 66px;
        height: 66px;

        margin-bottom: 11px;
    }


    .purchase-success-ring {
        width: 49px;
        height: 49px;

        font-size: 21px;
    }


    .purchase-modal h3 {
        font-size: 19px;
    }


    .purchase-message {
        margin: 5px 0 15px;

        font-size: 9px;
    }


    .purchase-details {
        padding: 2px 12px;

        border-radius: 14px;
    }


    .purchase-detail {
        min-height: 64px;

        gap: 9px;
    }


    .purchase-detail-icon {
        width: 37px;
        height: 37px;

        font-size: 15px;
    }


    .purchase-detail-info span {
        font-size: 8px;
    }


    .purchase-detail-info strong {
        margin-top: 3px;

        font-size: 11px;
    }


    .purchase-ok {
        height: 43px;

        margin-top: 13px;

        border-radius: 10px;

        font-size: 11px;
    }

}