.block_cart {
    padding: 30px;
    overflow: hidden;
    width: 100%;
}

.order-info-payment-block {
    overflow-y: auto;
    height: 100%;
}

.order-info-payment {
    margin: auto;
    border: 2px solid #CDCDCD;
    box-sizing: border-box;
    padding: 30px 60px;
    width: 86.57%;
    border-bottom-width: 0px;
}

.order-info-payment:first-child{
    border-top-left-radius: 10px;
    border-top-right-radius: 10px
}

.order-info-payment:last-child {
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-width: 2px;
}

.top-block-order-info-payment {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.title-block-order-info-payment {
    font-style: normal;
    font-weight: bold;
    font-size: 20px;
    color: #333333;
    opacity: 0;
}

.ready {
    display: none;
}

.ready > span {
    border: 1px solid grey;
    border-radius: 5px;
    color: grey;
    padding: 2px 10px;
    margin: auto 10px;
    cursor: pointer;
}

.ready > img {
    width: 20px;
}

.bottom-block-order-info-payment {
    height: 0px;
    overflow: hidden;
    -webkit-transition-duration: 0.5s;
    -moz-transition-duration: 0.5s;
    -o-transition-duration: 0.5s;
    transition-duration: 0.5s;
}

.bottom-block-order-info-payment.maxHeight {
    margin-top: 26px;
    height: max-content;
}

.button-block-order-info-payment {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.order-info-payment:first-child .button-block-order-info-payment {
    justify-content: end;
}

.button-block-order-info-payment > button {
    font-size: 15px;
    padding: 12px;
    color: white;
    font-weight: 500;
    border: 0.625px solid #E3E3E3;
    box-shadow: 0px 2.5px 10px rgb(33 33 33 / 15%);
    border-radius: 10px;
    width: max-content;
}

.inLineBlock {
    display: flex;
    justify-content: space-between;
}

.inLineBlock > .form-group {
    width: 48%;
}

.inLineBlock > .form-group p {
    margin: 0px;
}

#prevBlock {
    background-color: grey;
}

.tipsBlock {
    padding: 20px;
    border: 1px solid #F3F4F7;
    background-color: #F3F4F7;
    border-radius: 10px;
    width: max-content;
    min-width: 310px;
}

.tipsTotal {
    display: flex;
    margin: auto;
    padding: 10px 20px;
    font-size: 23px;
    font-weight: 500;
    align-items: end;
    background-color: white;
    color: gray;
    border-radius: 15px;
    border: 3px solid;
}

.tipsTotal > label,
.deliveryTotal > label {
    margin: 0px;
    margin-right: 10px;
}

.tipsTotal > span,
.deliveryTotal > span {
    font-size: 20px;
}

.togo-block {
    margin: auto;
}

.togo-block > label {
    margin: 0px;
    font-size: 23px;
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
    border: 2px solid #5F9C4A;
    padding: 5px 10px;
    background: #5F9C4A;
    border-radius: 5px;
    cursor: pointer;
}

.togo-block input {
    display: none;
}

#enterDelivery {
    margin: 30px auto;
}

.order-info-payment .delivery-form-block {
    margin: auto;
    border: 3px solid #373737;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 20px;
    width: max-content;
}

.deliveryForm input,
.deliveryForm textarea {
    border-color: #373737;
}

.deliveryTotal {
    display: none;
    margin: auto 0px;
    padding: 10px 20px;
    font-size: 23px;
    font-weight: 500;
    align-items: end;
    background-color: white;
    color: gray;
    border-radius: 15px;
    border: 3px solid;
}

.time-list {
    border: 1px solid #CDCDCD;
    border-radius: 10px;
    width: max-content;
    padding: 10px 60px;
    margin: auto;
    height: 415px;
    overflow: auto;
}

.active-select {
    font-weight: 700;
    background-color: forestgreen;
    color: white;
}

.block_pay_button {
    height: 100%;
    width: 100%;
    background-color: #57A73A;
    display: grid;
}

.payment-buttons {
    display: flex;
    margin-bottom: 20px;
}

#paymentButton {
    width: 100%;
}

.card-button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid;
    border-radius: 5px;
    background-color: green;
    padding: 5px;
    cursor: pointer;
    color: white;
}

.card-button > img {
    height: 24px;
    margin-right: 5px;
}

.card-elements {
    max-width: 615px;
    margin: auto;
}

#payment-form .wait_animation {
    position: relative;
    margin-bottom: 20px;
    width: 52px;
}



@media screen and  (max-device-width: 710px) {

    .order-info-payment {
        width: 100%;
        padding: 30px;
    }

    .title-block-order-info-payment {
        font-size: 50px;
    }

    .ready > img {
        width: 50px;
    }

    .bottom-block-order-info-payment.maxHeight {
        margin-top: 65px;
    }

    #wantPickup_, #wantDelivery_ {
        width: 250px;
        height: 100px;
        align-items: center;
        display: flex;
        font-size: 45px;
        justify-content: center;
    }

    .inLineBlock {
        justify-content: center;
        flex-wrap: wrap;
    }

    #enterDelivery {
        margin-top: 65px;
        margin-bottom: 65px;
    }

    .button-block-order-info-payment {
        margin-top: 38px;
    }

    .order-info-payment .delivery-form-block {
        width: 100%;
    }

    .button-block-order-info-payment > button {
        font-size: 40px!important;
        padding: 18px 22px;
    }

    .deliveryTotal, .tipsTotal {
        display: flex;
        font-size: 45px;
        padding: 23px 25px;
        margin: 25px;
        align-items: center;
    }

    .togo-block > label {
        display: flex;
        font-size: 45px;
        padding: 23px 25px;
        margin: 25px;
        align-items: center;
    }

    .tipsTotal > span, .deliveryTotal > span {
        font-size: 41px;
    }

    .delivery-button-block {
        margin-bottom: 25px;
    }

    .deliveryAddress {
        max-width: 100%;
        margin: 25px;
        font-size: 40px;
        padding: 18px 22px;
        box-shadow: 0px 2.5px 10px rgb(33 33 33 / 44%);
    }

    .deliveryButtons {
        justify-content: center;
    }

    .deliveryButtons > div {
        font-size: 40px!important;
        width: 72px;
        height: 72px;
        box-shadow: 0px 2.5px 10px rgb(33 33 33 / 44%);
    }

    .small {
        font-size: 29px;
    }

    .inLineBlock > .form-group {
        width: 100%;
    }

    .tipsBlock {
        padding: 30px;
    }

    .tip_button {
        padding: 30px;
        font-size: 45px;
        margin: auto;
    }

    .time-list {
        height: 800px;
    }

    .deliveryForm .select2-container {
        margin-bottom: 24px;
    }

    .deliveryForm .select2-container--default .select2-selection--single {
        border: 2px solid #373737;
    }

    .card-button {
        font-size: 33px;
        padding: 13px 0px;
    }

    .card-button > img {
        height: 33px;
        margin-right: 15px;
    }

    #payment-form .wait_animation {
        height: 200px;
        width: 138px;
        padding: 30px 0px;
        line-height: unset;
        margin-bottom: 0px;
    }

    #payment-form .wait_animation > .img_1 {
        width: 140px;
        height: 140px;
    }

    #payment-form .wait_animation > .img_2 {
        width: 100px;
        height: 100px;
        margin-top: 20px;
        margin-left: 20px;
    }

    #payment-form .summa_cart {
        font-size: 29px;
        padding: 20px 30px;
    }
}
