/* ============================================================
   MESSAGE BOX
   ============================================================ */

#messageBox {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    z-index: 2147483647 !important;

    display: none;

    align-items: center;
    justify-content: center;

    pointer-events: none;
}

#messageBox.show {
    display: flex !important;
    pointer-events: auto;
}


/* ============================================================
   OVERLAY
   ============================================================ */

#messageBox .message-box-overlay {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw;
    height: 100vh;

    background: rgba(32, 33, 36, 0.55);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    z-index: 0;

    cursor: default;
}


/* ============================================================
   CARD
   ============================================================ */

#messageBox .message-box-card {
    position: relative !important;

    z-index: 1;

    width: min(420px, calc(100% - 32px));

    background: #fff;

    border: 1px solid #f0dfe5;
    border-radius: 18px;

    padding: 22px;

    box-sizing: border-box;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.22);

    opacity: 1;
    visibility: visible;
}


/* ============================================================
   ICON
   ============================================================ */

#messageBox .message-box-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 50%;

    background: #fff1f6;
    color: var(--pink);

    font-size: 20px;
    font-weight: 800;
}


/* ============================================================
   CONTENT
   ============================================================ */

#messageBox .message-box-content b {
    display: block;

    color: #202124;

    font-size: 16px;
    font-weight: 700;

    margin-bottom: 8px;
}

#messageBox .message-box-content p {
    margin: 0;

    color: #70757d;

    font-size: 13px;
    line-height: 1.6;
}


/* ============================================================
   ACTIONS
   ============================================================ */

#messageBox .message-box-actions {
    display: flex;
    justify-content: flex-end;

    gap: 8px;

    margin-top: 22px;
}


/* ============================================================
   BUTTON
   ============================================================ */

#messageBox .message-box-btn {
    border: 0;

    padding: 10px 17px;

    border-radius: 9px;

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

#messageBox .message-box-btn:hover {
    opacity: 0.92;
}

#messageBox .message-box-btn:active {
    transform: scale(0.98);
}


/* ============================================================
   SECONDARY
   ============================================================ */

#messageBox .message-box-btn.secondary {
    background: #f5f5f6;
    color: #555;
}


/* ============================================================
   PRIMARY
   ============================================================ */

#messageBox .message-box-btn {
    width: auto;

    margin-top: 0;

    padding: 10px 17px;

    background: linear-gradient(
        135deg,
        var(--pink2),
        var(--pink)
    );

    color: #fff;

    box-shadow: none;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 520px) {

    #messageBox .message-box-card {
        width: calc(100% - 28px);

        padding: 20px;

        border-radius: 16px;
    }

    #messageBox .message-box-actions {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    #messageBox .message-box-btn {
        width: 100%;
    }
}