/* ChapResto order flow final polish */

.rs-menu-gallery-tags:empty {
    display: none;
}

.rs-mobile-tabs a {
    position: relative;
}

.rs-mobile-tabs a em,
.rs-cart-nav em {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #de5b1d;
    color: #fff;
    font-size: .68rem;
    line-height: 18px;
    font-style: normal;
    font-weight: 1000;
    display: inline-grid;
    place-items: center;
}

.rs-mobile-tabs a em {
    position: absolute;
    top: 1px;
    right: 22%;
}

.rs-cart-nav {
    position: relative;
}

.rs-cart-nav em {
    position: absolute;
    top: 2px;
    right: -2px;
}

.cr-cart-page {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 5.5rem 0 6rem;
}

.cr-cart-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.cr-cart-hero p {
    margin: 0 0 .4rem;
    color: #d94d16;
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: .8rem;
    font-weight: 1000;
}

.cr-cart-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
    line-height: .95;
    letter-spacing: -.06em;
    color: #171313;
}

.cr-cart-hero span {
    display: block;
    margin-top: .75rem;
    color: #756b64;
    max-width: 680px;
    line-height: 1.55;
}

.cr-cart-back {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.1rem;
    border-radius: 999px;
    background: #fff;
    color: #171313;
    text-decoration: none;
    font-weight: 950;
    border: 1px solid rgba(118, 64, 24, .12);
    box-shadow: 0 16px 38px rgba(46, 35, 28, .08);
}

.cr-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(380px, .75fr);
    gap: 1.5rem;
    align-items: start;
}

.cr-cart-items-card,
.cr-order-summary-card,
.cr-cart-empty-card {
    background: #fff;
    border: 1px solid rgba(118, 64, 24, .13);
    border-radius: 28px;
    box-shadow: 0 22px 56px rgba(46, 35, 28, .08);
}

.cr-cart-items-card {
    padding: 1.15rem;
}

.cr-cart-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: .25rem .25rem .9rem;
}

.cr-cart-card-head p {
    margin: 0 0 .25rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #d94d16;
    font-size: .72rem;
    font-weight: 1000;
}

.cr-cart-card-head h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2.05rem);
    line-height: 1;
}

.cr-cart-card-head > strong {
    white-space: nowrap;
    background: #fff4ec;
    color: #d94d16;
    border-radius: 999px;
    padding: .55rem .8rem;
    font-size: .85rem;
}

.cr-cart-items {
    display: grid;
    gap: .8rem;
}

.cr-cart-item-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: center;
    border: 1px solid rgba(118, 64, 24, .14);
    border-radius: 22px;
    padding: .85rem;
    background: linear-gradient(135deg, #fff, #fffaf6);
}

.cr-cart-food-image {
    width: 90px;
    height: 76px;
    border-radius: 18px;
    background: #fff3e9 center / cover no-repeat;
    display: grid;
    place-items: center;
    color: #d94d16;
    font-weight: 1000;
    overflow: hidden;
}

.cr-cart-item-main h3 {
    margin: 0 0 .2rem;
    font-size: 1rem;
}

.cr-cart-item-main > span {
    color: #756b64;
    display: block;
    margin-bottom: .55rem;
}

.cr-cart-note {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid rgba(118, 64, 24, .14);
    border-radius: 14px;
    background: #fff;
    padding: 0 .75rem;
    max-width: 520px;
}

.cr-cart-note i {
    color: #d94d16;
    font-size: .9rem;
}

.cr-cart-note input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    min-width: 0;
}

.cr-cart-item-side {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cr-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(118, 64, 24, .13);
}

.cr-cart-qty button {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    border: 0;
    background: #fff8f1;
    color: #171313;
    font-weight: 1000;
    cursor: pointer;
}

.cr-cart-qty strong {
    min-width: 22px;
    text-align: center;
}

.cr-cart-line-total {
    white-space: nowrap;
    font-size: 1rem;
    color: #171313;
}

.cr-order-summary-card {
    position: sticky;
    top: 104px;
    padding: 1.1rem;
    overflow: hidden;
}

.cr-summary-head h2 {
    margin: 0 0 1rem;
    font-size: 1.45rem;
}

.cr-summary-head > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-top: 1px solid rgba(118, 64, 24, .10);
    border-bottom: 1px solid rgba(118, 64, 24, .10);
}

.cr-summary-head small {
    display: block;
    margin-top: .8rem;
    color: #756b64;
    line-height: 1.45;
}

.cr-customer-form {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 24px;
    background: #fff8f1;
    border: 1px solid rgba(118, 64, 24, .12);
}

.cr-customer-form-head {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    margin-bottom: .95rem;
}

.cr-customer-form-head > i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #d94d16;
    background: #fff;
}

.cr-customer-form h3 {
    margin: 0;
    font-size: 1.08rem;
}

.cr-customer-form p {
    margin: .22rem 0 0;
    color: #756b64;
    line-height: 1.4;
    font-size: .9rem;
}

.cr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.cr-form-grid label {
    display: grid;
    gap: .35rem;
    font-weight: 950;
    color: #171313;
    min-width: 0;
}

.cr-form-grid label.wide {
    grid-column: 1 / -1;
}

.cr-form-grid span {
    font-size: .84rem;
}

.cr-form-grid input,
.cr-form-grid textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(118, 64, 24, .16);
    border-radius: 15px;
    background: #fff;
    padding: .78rem .85rem;
    font: inherit;
    outline: none;
}

.cr-form-grid textarea {
    min-height: 82px;
    resize: vertical;
}

.cr-form-grid input:focus,
.cr-form-grid textarea:focus {
    border-color: #de5b1d;
    box-shadow: 0 0 0 4px rgba(222, 91, 29, .11);
}

.cr-order-warning {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .85rem 1rem;
    border-radius: 16px;
    background: #fff2e8;
    color: #9d3b11;
    font-weight: 850;
    margin-bottom: .85rem;
}

.cr-order-actions {
    display: grid;
    gap: .7rem;
}

.cr-btn-whatsapp {
    background: #1fa855;
    color: #fff;
    border: 0;
}

.cr-btn-whatsapp:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.cr-cart-empty-card {
    padding: 3rem 1.5rem;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: .75rem;
}

.cr-cart-empty-card i {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #d94d16;
    background: #fff4ec;
    font-size: 1.7rem;
}

.cr-cart-empty-card h2,
.cr-cart-empty-card p {
    margin: 0;
}

@media (max-width: 1120px) {
    .cr-cart-layout {
        grid-template-columns: 1fr;
    }

    .cr-order-summary-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .cr-cart-page {
        width: min(100% - 24px, 560px);
        padding: 2rem 0 6.2rem;
    }

    .cr-cart-hero {
        display: grid;
        gap: 1rem;
        align-items: start;
        margin-bottom: 1.15rem;
    }

    .cr-cart-hero h1 {
        font-size: 2.25rem;
    }

    .cr-cart-hero span {
        font-size: .94rem;
    }

    .cr-cart-back {
        justify-self: start;
        padding: .72rem .95rem;
    }

    .cr-cart-items-card,
    .cr-order-summary-card {
        border-radius: 24px;
        padding: 1rem;
    }

    .cr-cart-card-head {
        display: grid;
        gap: .55rem;
    }

    .cr-cart-item-card {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: .75rem;
        padding: .75rem;
        align-items: start;
    }

    .cr-cart-food-image {
        width: 76px;
        height: 72px;
        border-radius: 16px;
    }

    .cr-cart-item-side {
        grid-column: 1 / -1;
        justify-content: space-between;
        gap: .75rem;
        padding-top: .55rem;
        border-top: 1px solid rgba(118, 64, 24, .10);
    }

    .cr-cart-note {
        max-width: none;
        min-height: 38px;
    }

    .cr-form-grid {
        grid-template-columns: 1fr;
    }

    .cr-customer-form {
        padding: .9rem;
    }

    .cr-customer-form-head {
        display: grid;
        gap: .55rem;
    }
}

@media (max-width: 420px) {
    .cr-cart-page {
        width: calc(100% - 18px);
    }

    .cr-cart-hero h1 {
        font-size: 2rem;
    }

    .cr-cart-item-side {
        display: flex;
    }

    .cr-cart-line-total {
        font-size: 1.02rem;
    }
}
