.order-wrapper {
    background-color: #f7f7f7;
}

.order-wrapper .order-step {
    max-width: 700px;
    margin: auto;
    display: flex;
    align-items: center;
    position: relative;
}

.order-wrapper .order-step .content {
    flex: 1;
}

.order-wrapper .order-step .content .btn-next {
    display: none;
}

#start-order {
    font-size: 1.3rem;
    font-weight: 500;
}

#products .product-listing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
}

#products .product-listing .product-item {
    cursor: pointer;
}

#products .product-listing .product-item.selected {
    border: 2px solid orange !important;
}

#products #preview-cart {
    width: 100%;
    position: absolute;
    bottom: 4.5rem;
    display: none;
    align-items: center;
    justify-content: space-between;
}

#products #preview-cart .total-qty {
    border: 1px solid black;
    width: 30px;
    height: 30px;
    text-align: center;
    padding-top: 2px;
}

#products #preview-cart strong {
    font-size: 1.3rem;
    font-weight: 500;
}

.order-step .input-control {
    border: none;
    outline-width: 0;
    border-bottom: 2px solid gray;
    width: 100%;
    font-size: 28px;
    padding: 5px 0;
    color: gray;
    background-color: transparent;
}

#qty-modal .modal-body {
    position: relative;
}

#qty-modal .modal-body button.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    background-color: white;
    color: gray;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 3px;
}

#qty-modal .change-qty-input-group {
    width: 35%;
    margin: auto;
}

#qty-modal .change-qty-input-group input {
    font-size: 1.3rem;
    text-align: center;
}

#qty-modal .add-cart {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 500;
}

#cart-modal .change-qty-input-group {
    width: 140px;
}

#cart-modal .product {
    flex: 1;
}

#cart-modal .product img {
    align-self: flex-start;
}

#cart-modal .product .name {
    font-size: 1rem;
}

#cart-modal .change-qty-input-group input {
    font-size: 1rem;
    text-align: center;
}

#cart-modal .process-checkout {
    width: 100%;
    font-size: 1.3rem;
    font-weight: 500;
}

#pay-button {
    font-size: 1.3rem;
    font-weight: 500;
}

#change-step-buttons {
    position: fixed;
    bottom: 1rem;
}

.modal.fade .modal-dialog {
    transform: translate3d(0, 100vh, 0);
}

.modal.show .modal-dialog {
    transform: translate3d(0, 0, 0);
}

.modal-dialog-bottom {
    min-height: calc(100% - 3.5rem);
    display: flex;
    align-items: flex-end;
}

@media (max-width: 576px) {
    #products .product-listing {
        grid-template-columns: repeat(2, 1fr);
    }

    #qty-modal .modal-dialog {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    #qty-modal .modal-dialog .card-body {
        padding: 0.75rem
    }

    #qty-modal .modal-body button.close {
        padding-bottom: 0;
    }

    #qty-modal .change-qty-input-group {
        width: 50%;
    }
}
