/* 
    Author     : Artem Khyzhynskiy | manhattan_art
    Author URL : https://manhattanart.myportfolio.com/ 
*/

.page-template-page-delivery-menu .page-title {
    text-align: center;
}

.delivery-item {
    padding: 0 0 10px;
    margin-bottom: 25px;
    box-shadow: 0 0 5px #CCC;
    background: #FAFAFA;
    min-width: 120px;
}

.delivery-menu-list.menu-2-cols {
    margin: 0 -15px;
}

.menu-2-cols .delivery-item {
    width: calc(50% - 10px);
    margin: 0 5px 15px;
}

.delivery-item .banner {
    height: 150px;
    min-height: 150px;
    margin: 15px 15px 0;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 3px;
}

.delivery-menu-list .wp-block-columns,
.delivery-item .wp-block-columns {
    margin: 0;
    padding: 0 15px;
    align-items: center;
}

.delivery-item .entry-title {
    margin-bottom: 0;
    padding-top: 10px;
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
}

.menu-page .content-part .delivery-item p.price,
.delivery-item .price {
    color: black;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
    margin-bottom: -15px;
}

.delivery-item .item-description {
    display: none;
}

.delivery-item .input-group.controls {
    display: flex;
    position: relative;
}

.menu-page .content-part .delivery-item p.control-label {
    font-size: 12px;
}

.delivery-item .wp-block-button__link {
    padding: 6px;
    width: 100%;
    width: 30px;
}

.delivery-item .loader {
    position: absolute;
    top: 1px;
    height: calc(100% - 2px);
    z-index: 10;
    background: #FFFFFF;
    color: #f47a64;
    text-align: center;
    left: 30px;
    font-weight: bold;
    line-height: 39px;
    opacity: 0;
    -webkit-transition: opacity 0.2s ease;
    -moz-transition: opacity 0.2s ease;
    -o-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

.delivery-item .loader.active {
    opacity: 1;
}

.delivery-item .form-control,
.delivery-item .loader {
    width: calc(100% - 60px);
}

.delivery-item .wp-block-button,
.delivery-item .form-control {
    display: inline-block;
    text-align: center;
    font-weight: bold;
}

.panel-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 15px;
    width: 100%;
    height: 4.5em;
    background: #f47a64;
    text-align: center;
    z-index: 100;
}

.checkout__icon {
    position: absolute;
    top: 25px;
    left: 15px;
    font-size: 21px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    display: inline-block;
    text-align: center;
    color: #FFFFFF;
}

.checkout__count {
    position: absolute;
    top: 23px;
    right: 15px;
    padding: 3px;
    width: 34px;
    height: 34px;
    border: 2px solid #FAFAFA;
    color: #FFFFFF;
    border-radius: 50%;
    font-weight: bold;
    line-height: 24px;
}

@media only screen and (max-width: 768px) {
    .checkout__count {
        top: 18px;
    }

    .checkout__icon {
        top: 19px;
    }

    .panel-fixed {
        padding: 10px;
        height: 5em;
    }
}

.checkout {
    position: absolute;
    left: 50%;
    margin: 0 auto;
    margin-left: -100px;
    width: 200px;
    height: 3em;
    font-weight: 400;
    -webkit-transform-origin: 50% 0%;
    transform-origin: 50% 0%;
    -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.checkout--active {
    -webkit-transform: translate3d(0, 15px, 0) translate3d(0, 30vh, 0) translate3d(0, -50vh, 0);
    transform: translate3d(0, 15px, 0) translate3d(0, 30vh, 0) translate3d(0, -50vh, 0);
}

a.checkout__button {
    position: relative;
    z-index: 110;
    display: block;
    margin: 0 auto;
    height: 100%;
    border-radius: 30px;
    color: #fff;
    line-height: 3em;
    -webkit-transition: background-color 0.6s cubic-bezier(0.7, 0, 0.3, 1), -webkit-transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    transition: background-color 0.6s cubic-bezier(0.7, 0, 0.3, 1), transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}

a.checkout__button:hover,
a.checkout__button:focus {
    outline: none;
    color: #fff;
}

.checkout--active a.checkout__button {
    background-color: #3f3d3d;
    -webkit-transform: perspective(1000px) translate3d(0, -2.5em, 0);
    transform: perspective(1000px) translate3d(0, -2.5em, 0);
}

.checkout--active a.checkout__button.loading {
    background-color: #f47a64;
    -webkit-box-shadow: inset 0px 2px 4px 1px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: inset 0px 2px 4px 1px rgba(0, 0, 0, 0.5);
    -o-box-shadow: inset 0px 2px 4px 1px rgba(0, 0, 0, 0.5);
    box-shadow: inset 0px 2px 4px 1px rgba(0, 0, 0, 0.5);
}

.checkout__text-inner {
    color: #FFFFFF;
    font-size: 12px;
}

.checkout__final-text,
.checkout__initial-text {
    -webkit-transition: opacity 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    transition: opacity 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}

.checkout--active .checkout__initial-text {
    opacity: 0
}

.checkout__final-text {
    position: absolute;
    left: 0;
    width: 100%;
    opacity: 0;
}

.checkout--active .checkout__final-text {
    opacity: 1;
}

.checkout__order,
.checkout__order::before {
    position: absolute;
    bottom: 0%;
    left: 50%;
    -webkit-transform: translate3d(-50%, 0%, 0);
    transform: translate3d(-50%, 0%, 0);
    z-index: 100;
}

.checkout__order {
    overflow: hidden;
    min-width: 320px;
    max-width: 700px;
    width: 95vw;
    height: 60vh;
    text-align: right;
    pointer-events: none;
}

.checkout--active .checkout__order {
    pointer-events: auto;
}

.checkout__order::before {
    content: '';
    z-index: 0;
    width: 200px;
    height: 3em;
    border-radius: 10px;
    background: #32373c;
    -webkit-transition: width 0.6s cubic-bezier(0.7, 0, 0.3, 1), height 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    transition: width 0.6s cubic-bezier(0.7, 0, 0.3, 1), height 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}

.checkout--active .checkout__order::before {
    width: 100%;
    height: 100%;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
}

.checkout__order-inner {
    position: relative;
    padding: 4em 4em;
}

.checkout--active .checkout__order-inner {
    height: 100%;
    max-height: 100%;
    overflow: auto;
}

.checkout__close {
    position: absolute;
    top: 1em;
    right: 15px;
    overflow: visible;
    width: auto;
    height: 30px;
    font-size: 14px;
    line-height: 30px;
    border: none;
    background: transparent;
    color: white;
    opacity: 0;
    backface-visibility: hidden;
    text-align: left;
    padding-right: 30px;
}

.checkout__close:focus {
    outline: none;
}

.checkout--active .checkout__close {
    opacity: 1;
    -webkit-transition: opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1) 0.015s;
    transition: opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1) 0.015s;
}

.checkout__close .icon {
    position: absolute;
    top: 50%;
    right: 0;
    color: #fff;
    text-indent: 0;
    -webkit-transform: translate(0, -50%);
    -moz-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
    transform: translate(0, -50%);
    font-size: 24px;
}

.checkout__close:hover .icon {
    color: #f47a64;
}

.checkout__action {
    padding: 0;
    border: none;
    background: none;
}

.checkout__action:focus {
    outline: none;
}

.checkout__action .icon {
    color: #f47a64;
}

.checkout__summary {
    color: #fff;
}

.checkout__summary tr {
    opacity: 0;
    -webkit-transition: -webkit-transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.3s cubic-bezier(0.7, 0, 0.3, 1);
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}

.checkout__summary tr:nth-child(1) {
    -webkit-transform: translate3d(0, 120px, 0);
    transform: translate3d(0, 120px, 0);
}

.checkout__summary tr:nth-child(2) {
    -webkit-transform: translate3d(0, 140px, 0);
    transform: translate3d(0, 140px, 0);
}

.checkout__summary tr:nth-child(3) {
    -webkit-transform: translate3d(0, 160px, 0);
    transform: translate3d(0, 160px, 0);
}

.checkout__summary tr:nth-child(4) {
    -webkit-transform: translate3d(0, 180px, 0);
    transform: translate3d(0, 180px, 0);
}

.checkout__summary tr:nth-child(5) {
    -webkit-transform: translate3d(0, 200px, 0);
    transform: translate3d(0, 200px, 0);
}

.checkout__summary tr:nth-child(6) {
    -webkit-transform: translate3d(0, 220px, 0);
    transform: translate3d(0, 220px, 0);
}

.checkout--active .checkout__summary tr {
    opacity: 1;
    -webkit-transform: perspective(1000px) translate3d(0, 0, 0);
    transform: perspective(1000px) translate3d(0, 0, 0);
    -webkit-transition: -webkit-transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1);
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.checkout--active .checkout__summary tbody tr:nth-child(1) {
    -webkit-transition-delay: 0.015s;
    transition-delay: 0.015s;
}

.checkout--active .checkout__summary tbody tr:nth-child(2) {
    -webkit-transition-delay: 0.03s;
    transition-delay: 0.03s;
}

.checkout--active .checkout__summary tbody tr:nth-child(3) {
    -webkit-transition-delay: 0.045s;
    transition-delay: 0.045s;
}

.checkout--active .checkout__summary tbody tr:nth-child(4) {
    -webkit-transition-delay: 0.06s;
    transition-delay: 0.06s;
}

.checkout--active .checkout__summary tbody tr:nth-child(5) {
    -webkit-transition-delay: 0.075s;
    transition-delay: 0.075s;
}

.checkout--active .checkout__summary tbody tr:nth-child(6) {
    -webkit-transition-delay: 0.09s;
    transition-delay: 0.09s;
}

@media screen and (max-width: 539px) {
    .checkout--active {
        -webkit-transform: translate3d(0, 15px, 0);
        transform: translate3d(0, 15px, 0);
    }

    .checkout__summary {
        margin-top: 2em;
        table-layout: fixed;
    }

    .checkout__order-inner {
        padding: 1em 1.75em
    }

    .checkout__order {
        width: 100vw;
        height: 100vh;
    }

    .checkout--active .checkout__order {
        height: calc(100vh - 90px);
        bottom: 0;
    }

    .checkout__order .checkout__order-inner {
        height: 100%;
        max-height: 100%;
        overflow: auto;
    }

    .checkout__summary thead th:first-child,
    .checkout__summary tbody td:first-child {
        width: 150px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .checkout__summary th:last-child,
    .checkout__summary td:last-child {
        padding-left: 10px
    }
}


@media only screen and (min-width: 360px) {
    .checkout__text-inner {
        font-size: 14px;
    }
}

@media only screen and (min-width: 540px) {
    .menu-2-cols .delivery-item {
        width: calc(50% - 40px);
        margin: 0 20px 40px;
    }

    .delivery-item .banner {
        height: 180px;
        min-height: 180px;
        margin: 0 auto;
        border-radius: 0;
    }

    .menu-page .content-part .delivery-item p.control-label,
    .delivery-item .entry-title {
        font-size: 16px;
    }

    .delivery-item .item-description {
        display: block;
    }

    .checkout {
        margin-left: -6.5em;
        width: 13em;
    }

    .checkout__order::before {
        width: 13em;
    }

    .checkout__icon {
        font-size: 23px;
    }

    .checkout__text-inner {
        font-size: 16px;
    }
}


@media only screen and (min-width: 768px) {
    .delivery-menu-list .wp-block-columns,
    .delivery-item .wp-block-columns {
        margin: 0 0 5px;
    }

    .delivery-item .banner {
        height: 240px;
        min-height: 240px;
    }

    .menu-page .content-part .delivery-item p.price,
    .delivery-item .price {
        margin-bottom: 0;
        padding-top: 10px;
    }

    .checkout__icon {
        left: 1.5em;
        font-size: 25px;
    }

    .checkout {
        margin-left: -7.5em;
        width: 15em;
    }

    .checkout__order::before {
        width: 15em;
    }

    .checkout__close {
        right: 1em;
        top: 1em;
    }

    .checkout__count {
        right: 1.5em;
    }

    .delivery-item .wp-block-column:nth-child(2n) {
        margin-left: 0;
    }
}

@media screen and (max-width: 539px) and (-webkit-min-device-pixel-ratio: 0) {
    .checkout__close {
        top: 2em;
    }

    .checkout__order .checkout__order-inner {
        padding: 2em 1.75em
    }
}

.delivery-menu-intro {
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding-left: 100px;
    padding-right: 100px;
}

@media only screen and (max-width: 768px) {
    .delivery-menu-intro {
        padding-left: 20px;
        padding-right: 20px;
        text-align: justify;
    }
}