.popup {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    padding: 40px 10px;
    width: 100vw;
    min-width: 320px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-transition: all 0.6s ease 0s;
    transition: all 0.6s ease 0s;
    color: #000;
}

.popup.open {
    opacity: 1;
    visibility: visible;
}

.popup.open .popup__content {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

.popup__body {
    min-height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.popup__header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.popup__title {
    font-size: 14px;
}

.popup__content {
    position: relative;
    background-color: #fff;
    -webkit-transition: all 0.6s ease 0s;
    transition: all 0.6s ease 0s;
    opacity: 0;
    border-radius: 4px;
    max-width: 100%;
    width: 100%;
    -webkit-transform: scale(0);
    transform: scale(0);
}

.popup__close {
    width: 15px;
    height: 15px;
}

.popup__close svg {
    width: 100%;
    height: 100%;
}

.popup__close:hover {
    opacity: 1;
}

.popup__close:focus {
    outline: none;
}

.popup__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    width: 100%;
}

.popup__price {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.popup__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.popup__order {
    margin-left: 10px;
}

@media (min-width: 535px) {
    .popup__content {
        min-width: 400px;
        width: auto;
    }
}

@media (max-width: 535px) {
    .popup__footer {
        flex-direction: column;
    }
    .popup__order {
        margin-left: 0;
        margin-top: 10px;
    }
    .popup__buttons {
        flex-direction: column;
        margin-top: 10px;
    }
    .popup .table tbody tr {
        display: flex;
        align-items: center;
    }
}