.ui-popup {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 100;
}

.ui-popup--show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-popup__container {
    background: #fff;
    border-radius: 4px;
    position: relative;
    padding: 50px;
    width: 100%;
    max-width: 650px;
    max-height: 80vh;
    overflow: auto;
    margin: 10px;
}

.ui-popup__close {
    position: absolute;
    right: 20px;
    top: 20px;
}

.ui-popup h3 {
    margin-top: 0;
}

.ui-form__error {
    color: red;
    display: none;
    padding-left: 10px;
    padding-top: 20px;
}

.ui-popup__buttons{
    margin-top: 20px;
}

@media (max-width: 550px) {
    .ui-popup--show {
        align-items: flex-start;
    }

    .ui-popup__container {
        max-height: calc(100vh - 30px);
        padding: 30px 15px;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .ui-popup__close {
        top: 10px;
        right: 10px;
    }
}
