.popup {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    padding: 0;
    width: 100vw;
    min-width: 320px;
    height: calc(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;
    box-sizing: border-box;
}

.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: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    -webkit-box-pack: flex-end;
    -ms-flex-pack: flex-end;
    justify-content: flex-end;
    border-radius: 1px;
}
.popup__body .minicart-item__price {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--main-text-color);
}

.popup__header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
}
.popup__cart-content {
    max-height: 50vh;
    overflow-y: auto;
}
.popup__cart-content_empty {
    overflow-y: hidden;
}
.popup__cart-content .alert-primary{
    width: 100%;
    min-width: auto;
    text-align: center;
    color: var(--main-text-color);
    opacity: 0.8;
}
.popup__cart-content .minicart-item__delete {
    margin-right: 8px;
}
.popup__cart-content .minicart__quantity-container {
    display: block;
    padding: 0 10px;
    font-size: 13px;
    line-height: 18px;
    opacity: 0.8;
    color: var(--main-text-color);
}

.popup__cart-content .minicartCount, 
.popup__cart-content .js-smallCartAmount {
    display: none;
}
.popup__footer .popup__order {
    margin-bottom: 5px;
    display: none;
}
.popup__footer .popup__order_active {
    display: block;
}
.popup__cart-content .minicart__old-price,
.popup__cart-content .minicart__sale {
    display: block;
    margin: 10px 0 0;
}
.popup__cart-content .js-cartPrice {
    margin-right: 5px;
    margin: 10px 5px 0 0;
}
.popup__cart-content .minicart__sale {
    margin-right: 5px;
    color: red;
    font-weight: 700;
}
.popup__cart-content .minicart__old-price {
    color: var(--main-text-color);
    text-decoration: line-through;
    opacity: 0.8;
}
.popup__cart-content .minicart-item__price {
    display: flex;
    flex-wrap: wrap;
    max-width: 200px;
}
.popup__title {
    color: var(--main-text-color);
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-sizing: border-box;
    margin: 8px 0;
}

.modal-body {
    padding: 15px;
}

@media (max-width: 480px) {
    .modal-body {
        padding: 10px 0 0 0;
    }
}

.popup__content {
    position: relative;
    background-color: var(--main-background-color);
    -webkit-transition: all 0.6s ease 0s;
    transition: all 0.6s ease 0s;
    opacity: 0;
    width: auto;
    -webkit-transform: scale(0);
    transform: scale(0);
    min-width: 400px;
}
.popup__content .minicart-item__title {
    max-width: 230px;
}

.popup__close {
    width: 25px;
    height: 25px;
    position: absolute;
    top: 33px;
    right: 20px;
    padding: 0;
    transition: all 0.4s ease-in-out;
    background: none;
    border: none;
    cursor: pointer;
}
.popup__close i::before {
    transition: all 0.4s ease-in-out;
}

.popup__close:hover i::before {
    transform: rotate(180deg);
}

.popup__close i {
    font-size: 25px;
    line-height: 1;
    max-height: 25px;
}

.popup__close:hover {
    opacity: 1;
}

.popup__close:focus {
    outline: none;
}

.popup__footer {
    display: flex;
    padding: 10px;
    width: 100%;
    flex-direction: column;
}
.popup__content {
    padding: 20px 24px;
}

.popup__price {
    display: none;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    line-height: 1.2;
    opacity: 0.8;
    letter-spacing: 1px;
    color: var(--main-text-color);
    margin-bottom: 10px;
}

.popup__buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
}


.popup .prop-position {
    margin-bottom: 5px;
}


@media (max-width: 535px) {
    .popup__footer {
        flex-direction: column;
        width: 100%;
    }
    .popup__buttons {
        flex-direction: column;
        margin-top: 10px;
    }
    .popup .table tbody tr {
        display: flex;
        align-items: center;
    }
}
@media (max-width: 480px) {
    .popup__content .minicart-item__title {
        max-width: 130px;
    }
    .popup__content {
        min-width: 280px;
        width: 100%;
    }
}