
.max-app-modal-open {
    overflow: hidden;
}

.max-app-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.max-app-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(4px);
    cursor: default;
}

.max-app-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    box-sizing: border-box;
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .32);
    text-align: center;
}

.max-app-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.max-app-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 27px;
    font-weight: 800;
}

.max-app-modal__icon.is-danger {
    background: #fff1f2;
    color: #e11d48;
}

.max-app-modal__title {
    color: #172033;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.max-app-modal__text {
    max-width: 390px;
    margin: 10px auto 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

.max-app-modal__field {
    display: block;
    margin-top: 20px;
    text-align: left;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.max-app-modal__field select {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    font-size: 14px;
}

.max-app-modal__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.max-app-modal__button {
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.max-app-modal__button.is-secondary {
    background: #f1f5f9;
    color: #1e293b;
}

.max-app-modal__button.is-primary {
    background: #2479df;
    color: #fff;
}

.max-app-modal__button.is-danger {
    background: #e5484d;
    color: #fff;
}

@media (max-width: 560px) {
    .max-app-modal__dialog {
        padding: 24px 18px 18px;
        border-radius: 18px;
    }

    .max-app-modal__actions {
        flex-direction: column-reverse;
    }

    .max-app-modal__button {
        width: 100%;
    }
}
