body{
    background-color: #f8f7f5;
}

.popup{
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    z-index: 100;
}

.popup__content {
    display: flex;
    flex-direction: column;
    width: 1024px;
    max-width: 98%;
    height: 83%;
    border-radius: 20px;
    background-color: #fff;
    z-index: 1000;
    overflow: hidden;
}

.popup__backdrop{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000040;
    z-index: 1;
}

.popup__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #d1d1d3;
}

.popup__ttl{
    font-size: 21px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.popup__close{
    cursor: pointer;
}

.popup__main {
    display: flex;
    flex: 1;
    padding-left: 16px;
    overflow: hidden;
    max-height: 73vh;
}

.popup__picture{
    display: flex;
    align-items: start;
    justify-content: center;
    width: 52%;
    padding-top: 16px;
}

.popup__img{
    width: 368px;
    max-width: 100%;
}

.popup__data{
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 16px;
    padding-right: 16px;
    overflow-y: scroll;
}

.popup__data::-webkit-scrollbar {
    width: 4px;
}

.popup__data::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}

.popup__data::-webkit-scrollbar-thumb {
    background: #c0c0c0; 
    border-radius: 4px;
}

.popup__data-ttl{
    margin-bottom: 4px;
    font-size: 18px;
    color: #e5002b;
    font-weight: 900;
}

.popup__data-sub{
    font-size: 19px;
    letter-spacing: -.9px;
}

.popup__descrip{
    font-size: 14px;
    font-weight: 500;
    color: #848484;
}

.popup__elements{
    flex: 1;
    margin-top: 22px;
}

.popup__el{
    width: 100%;
    min-height: 200px;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 4px solid #e5e7eb;
}

.popup__el-header{
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.popup__el-ttl{
    font-size: 17px;
}

.popup__el-sub{
    font-size: 14px;
    color: #848484;
}

.popup__number{
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 14px;
    background-color: #f1f1f1;
}

.popup__el-main{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.popup__el-main-el{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 20px;
    font-size: 14px;
    background-color: #f1f1f1;
}

.popup__bebida p{
    color: #e5002b;
    font-size: 13px;
    font-weight: 500;
}

/* From Uiverse.io by andrew-demchenk0 */ 
.container {
    --input-focus: #e5002b;
    --input-out-of-focus: #fcfcfc;
    --bg-color: #111;
    --bg-color-alt: #7e7e7e;
    --main-color: #fefefe;
    position: relative;
    cursor: pointer;
}

.container input {
    position: absolute;
    opacity: 0;
}

.checkmark {
    width: 32px;
    height: 32px;
    position: relative;
    top: 0;
    left: 0;
    border-radius: 50%;
    background-color: var(--input-out-of-focus);
    border: 1px solid #848484;
    transition: all 0.3s;
}

.container input:checked~.checkmark {
    background-color: var(--input-focus);
    border-color: var(--input-focus);
}

.checkmark:after {
    content: "";
    width: 6px;
    height: 15px;
    position: absolute;
    top: 5px;
    left: 11px;
    display: none;
    border: solid var(--main-color);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.container input:checked~.checkmark:after {
    display: block;
}

.counter{
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter__btn{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding-bottom: 6px;
    border-radius: 50%;
    font-size: 24px;
    background-color: #fff;
    border: 1px solid #7e7e7e;
    cursor: pointer;
}

.counter__amount{
    width: 28px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.popup__el-main.disabled .counter__btn:last-child{
    background-color: #e3e3e3;
}

.popup__footer{
    display: flex;
    justify-content: end;
    gap: 20px;
    padding: 16px 40px 16px 0;
    border-top: 1px solid #00000040;
}

.popup__footer-submit{
    padding: 12px 16px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #e5002b;
    border: none;
}

.cart{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 100vh;
}

.cart__content{
    display: flex;
    flex-direction: column;
    float: right;
    width: 525px;
    height: 100%;
    background-color: #fff;
    border-radius: 20px 0 0 0;
    z-index: 100;
}

.cart__backdrop{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000040;
    z-index: -1;
}

.cart__main{
    padding: 16px;
    flex: 1;
}

.cart__main--empty{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.cart__main--empty h3{
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.cart__main--empty p{
    font-size: 16px;
    letter-spacing: -.5px;
}

.cart__main--empty button{
    padding: 15px 56px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #262329;
    border: none;
}

.cart__product{
    display: flex;
    gap: 12px;
}

.cart__product img{
    width: 80px;
}

.cart__wrapper{
    width: 100%;
}

.cart__data{
    display: flex;
    justify-content: space-between;
}

.cart__name{
    font-size: 16px;
}

.cart__recipe{
    font-size: 14px;
    color: #848484;
    font-weight: 500;
}

.cart__price{
    font-size: 16px;
}

.card__update{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.card__delete{
    font-size: 14px;
    font-weight: 500;
    background-color: transparent;
    border: none;
}

.cart__sub-el{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0 0 40px;
}

.cart__sub-el .cart__product img{
    width: 64px;
    height: 64px;
}

.cart__sub-el .cart__name,
.cart__sub-el .cart__price{
    font-size: 14px;
}

.cart__empty{
    padding: 10px 16px;
    margin-top: 40px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid #c0c0c0;
}

.cart__footer{
    padding: 16px;
    border-top: 1px solid #00000040;
}

.cart__btn{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 50px;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background-color: #e5002b;
    border: none;
}

.bill{
    margin-top: 20px;
}

.bill__content{
    display: flex;
    flex-direction: column;
    gap: 16px; 
}

.bill__el{
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
}

.pay{
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background-color: #000000d0;
    z-index: 10000;
}

.pay__content{
    display: flex;
    width: 1000px;
    max-width: 96%;
    min-height: 400px;
    border-radius: 12px;
    background-color: #fff;
    overflow: hidden;
}

.pay__box{
    flex: 1 1 0%;
    height: 670px;
    max-height: 100%;
    overflow: hidden;
    overflow-y: scroll;
}

.pay__box::-webkit-scrollbar{
    width: 8px;
    border-radius: 12px;
    background-color: #fff;
}

.pay__box::-webkit-scrollbar-thumb{
    border-radius: 12px;
    background-color: #c0c0c0;
}

.pay__box:first-child{
    padding: 40px 32px 60px;
}

.pay__box:nth-child(2){
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 50px;
    background-color: #f4f4f4;
}

.pay__header{
    display: flex;
    align-items: start;
    justify-content: space-between;
    padding: 16px 8px;
}

.pay__logo{
    width: 100px;
}

.pay__details{
    position: absolute;
    top: 20px;
    right: 20px;
    display: none;
    font-size: 16px;
    text-decoration: underline;
    color: #e5002b;
    background-color: transparent;
    border: none;
}

.pay__position{
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.pay__el{
    position: relative;
    padding: 0 6px;
    background-color: #fff;
    z-index: 10;
}

.pay__el:first-child:before,
.pay__el:nth-child(2):before{
    content: "";
    position: absolute;
    top: 18px;
    left: 100%;
    width: 100%;
    height: 2px;
    background-color: #c9c9cc;
    z-index: 1;
}

.pay__el.check:first-child:before{
    background-color: #03703c;
}

.pay__el.check:nth-child(2):before{
    background-color: #03703c;
}

.pay__number{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #69696E;
    background-color: #d9d9db;
    border: 3px solid #d9d9db;
}

.pay__el.check .pay__number{
    display: none;
}

.pay__number-svg{
    display: none;
    background-color: #fff;
    border-color: #03703b56;
}

.pay__number-svg svg{
    fill: #03703c;
}

.pay__el.check .pay__number-svg{
    display: block;
}

.pay__el.active .pay__number{
    color: #262329;
    background-color: #fff;
    border-color: #252529;
}

.pay__txt{
    padding-top: 24px;
    font-size: 13px;
    font-weight: normal;
}

.pay__el.check .pay__txt{
    color: #03703c;
}

p.pay__txt{
    font-size: 16px;
    margin-bottom: 16px;
}

.pay__el.active .pay__txt{
    font-weight: 700;
}

.form{
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: rgba(114, 124, 158, 0.16) 0px 1px 4px;
}

.form--fdr{
    justify-content: space-between;
    flex-direction: row;
    margin: 20px 0 10px;
}

.form--fdr:last-child{
    margin-top: 0;
    margin-bottom: 0;
    border: 1px solid;
}

.form--fdr span{
    font-size: 14px;
    color: #17171A;
}

.form--fdr p{
    font-size: 13px;
    color: #404046;
}

.form--fdr button{
    font-size: 14px;
    font-weight: 700;
    background-color: transparent;
    border: none;
    color: #e5002b;
}

.form__el-group{
    display: flex;
    gap: 12px;
}

.form__el{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form__lbl{
    font-size: 12px;
}

.form__input{
    width: 100%;
    height: 40px;
    border-radius: 6px;
    padding: 0 14px;
    border: 1px solid #00000040;
}

.pay__list{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pay__list-el{
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0%;
    min-height: 42px;
    border-bottom: 2px solid transparent;
    transition: .3s ease-in-out;
}

.pay__list-el.active{
    border-color: #e5002b;
}

.method{
    padding-top: 16px;
}

.method__txt{
    font-size: 13px;
    margin-bottom: 20px;
}

.pay__tc{
    font-size: 12px;
    margin-top: 40px;
}

.pay__tc span{
    color: #1A60E1;
    text-decoration: underline;
}

.pay__continue{
    width: 200px;
    padding: 12px 16px;
    margin-top: 18px;
    border-radius: 6px;
    font-size: 15px;
    color: #fff;
    background-color: #e5002b;
    border: none;
}

.pay__continue--big{
    width: 100%;
    margin-top: 50px;
}

.pay__close,
.pay__close--mobile,
.pay__close--cmb{
    position: absolute;
    top: 20px;
    right: 26px;
    font-size: 30px;
    color: #e5002b;
    cursor: pointer;
}

.pay__close--mobile,
.pay__close--cmb{
    display: none;
}

.pay__main{
    flex: auto;
}

.pay__products{
    max-height: 245px;
    padding-left: 32px;
    padding-right: 30px;
    overflow: hidden;
    overflow-y: scroll;
}

.pay__products::-webkit-scrollbar{
    width: 8px;
    border-radius: 12px;
    background-color: #fff;
}

.pay__products::-webkit-scrollbar-thumb{
    border-radius: 12px;
    background-color: #c0c0c0;
}

.pay__prod{
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #00000040;
}

.pay__prod-content{
    display: flex;
}

.pay__prod-picture{
    width: 62px;
    height: 62px;
    border-radius: 4px;
    border: 1px solid #00000040;
    overflow: hidden;
}

.pay__prod-picture img{
    width: 62px;
    height: 62px;
}

.pay__prod-data{
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pay__prod-u{
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay__subtotal{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin: 20px 30px 0 32px;
    font-size: 14px;
    border-bottom: 1px solid #00000020;
}

.pay__footer{
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    border-top: 1px solid #00000020;
}

.header__footer{
    position: sticky;
    top: 0px;
    left: 0;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background-color: #fff;
    z-index: 10;
}

.header__footer-ul{
    display: flex;
    gap: 36px;
    overflow: hidden;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.header__footer-ul::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.header__footer-li{
    padding: 12px 0;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s ease-in-out;
}

.header__footer-li.active{
    color: #e5002b;
    border-bottom: 3px solid #e5002b;
}

.menu{
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    margin-top: 16px;
}

.menu:first-child{
    margin-top: 50px;
}

.menu__content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 16px;
}

.menu__element{
    display: flex;
    gap: 16px;
    width: 100%;
    border: none;
}

.menu__element:hover{
    transform: scale(1);
}

.menu__img{
    width: 144px;
    height: 144px;
}

.menu__data{
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.menu__price{
    font-weight: 700;
}

.menu__name {
    margin: 0;
    margin-bottom: 4px;
    text-align: left;
}

.menu__descrip{
    display: -webkit-box;
    -webkit-line-clamp: 2; /* número de líneas a mostrar */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #848484;
}

.menu__cart{
    padding: 8px 16px;
    margin-top: 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: #262329;
    border: none;
}

@media screen and (max-width: 1023px) {
    .menu__content{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 960px) {
    .pay__content {
        max-width: 100%;
        min-height: 100%;
    }

    .pay__box {
        height: 100vh;
    }
}

@media screen and (max-width: 767px) {
    .menu__content{
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media screen and (max-width: 639px) {
    .popup__content{
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .popup__main{
        flex-direction: column;
    }

    .popup__picture{
        width: 100%;
    }

    .popup__footer{
        padding: 16px;
        justify-content: center;
    }

    .cart__content{
        width: 100%;
        border-radius: 0;
    }
}

@media screen and (max-width: 600px) {
    .pay__header{
        position: relative;
        flex-direction: column;
        gap: 20px;
    }

    .pay__position{
        justify-content: space-between;
        width: 100%;
        overflow: hidden;
    }

    .pay__el{
        padding: 0 8px;
    }

    .pay__el:first-child:before,
    .pay__el:nth-child(2):before{
        content: "";
        position: absolute;
        top: 18px;
        left: 100%;
        width: 500%;
        height: 2px;
        background-color: #c9c9cc;
        z-index: 1;
    }

    .pay__box:nth-child(2){
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
    }

    .pay__details{
        display: block;
    }

    .pay__box:nth-child(2).none{
        display: none;
    }

    .pay__box:nth-child(2) ~ .pay__backdrop{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000000d0;
        z-index: 10;
    }

    .pay__box:nth-child(2).none ~ .pay__backdrop{
        display: none;
    }

    .pay__close{
        display: none;
    }

    .pay__close--mobile,
    .pay__close--cmb{
        display: block;
    }

    .pay__close--cmb{
        top: -20px;
        right: 14px;
    }
}