.takeaway-customer-menu {
    --takeaway-menu-accent: #1d4ed8;
    --takeaway-menu-accent-contrast: #fff;
    --takeaway-menu-border: #d8dee8;
    --takeaway-menu-muted: #5b6472;
    --takeaway-menu-surface: #fff;
    --takeaway-menu-soft: #f5f7fb;
    color: #172033;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 72rem;
}

body.takeaway-menu-page {
    --takeaway-menu-border: #d8dee8;
    --takeaway-menu-category-row-height: 3.825rem;
}

html.takeaway-menu-dialog-open,
body.takeaway-menu-dialog-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.takeaway-menu-dialog-open .takeaway-customer-header {
    visibility: hidden;
}

.takeaway-customer-menu *,
.takeaway-customer-menu *::before,
.takeaway-customer-menu *::after {
    box-sizing: border-box;
}

.takeaway-menu-landing {
    padding: 1rem;
}

.takeaway-menu-landing-nav {
    margin: 0 0 1rem;
}

.takeaway-menu-landing-nav a {
    color: var(--takeaway-menu-accent);
    font-weight: 700;
}

.takeaway-menu-landing-card {
    background: var(--takeaway-menu-surface);
    border: 1px solid var(--takeaway-menu-border);
    border-radius: .85rem;
    box-shadow: 0 .15rem .55rem rgba(23, 32, 51, .06);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
    overflow: hidden;
    padding: 1.25rem;
}

.takeaway-menu-landing-image img {
    border-radius: .65rem;
    display: block;
    height: auto;
    width: 100%;
}

.takeaway-menu-landing-copy h1 {
    color: inherit;
    font-family: inherit;
    margin: 0;
}

.takeaway-menu-landing-summary,
.takeaway-menu-landing-meta,
.takeaway-menu-landing-description {
    color: var(--takeaway-menu-muted);
}

.takeaway-menu-landing-order {
    margin: 1rem 0;
}

.takeaway-menu-landing-order form.cart {
    margin: 0;
}

.takeaway-menu-landing-order .quantity {
    margin: 0 .5rem .5rem 0;
}

.takeaway-menu-landing-description {
    border-top: 1px solid var(--takeaway-menu-border);
    margin-top: 1rem;
    padding-top: 1rem;
}

@media (max-width: 760px) {
    .takeaway-menu-landing-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

.takeaway-menu-heading h1,
.takeaway-menu-category h2,
.takeaway-menu-product h3,
.takeaway-menu-dialog h2,
.takeaway-menu-dialog h3 {
    color: inherit;
    font-family: inherit;
    margin: 0;
}

.takeaway-menu-heading > p,
.takeaway-menu-product-copy > p {
    color: var(--takeaway-menu-muted);
    margin: .35rem 0 0;
}

.takeaway-menu-category {
    background: var(--takeaway-menu-surface);
    border: 1px solid var(--takeaway-menu-border);
    border-radius: .85rem;
    box-shadow: 0 .15rem .55rem rgba(23, 32, 51, .06);
    margin: 0 0 1rem;
    overflow: clip;
    scroll-margin-top: 6rem;
}

.takeaway-menu-category-heading {
    align-items: center;
    background: var(--takeaway-menu-soft);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .85rem 1rem;
}

.takeaway-menu-category-heading h2 {
    flex: 1 1 auto;
    font-size: 1.25rem;
}

.takeaway-menu-category-heading h2 button {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-weight: 750;
    gap: .75rem;
    justify-content: space-between;
    padding: .25rem;
    text-align: left;
    width: 100%;
}

.takeaway-menu-category-label {
    align-items: center;
    display: grid;
    gap: .65rem;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.takeaway-menu-category-heading.has-image .takeaway-menu-category-label,
.takeaway-menu-categories.has-category-images
    .takeaway-menu-category-heading:not(.has-image)
    .takeaway-menu-category-label {
    grid-template-columns: 1.75rem minmax(0, 1fr);
}

.takeaway-menu-categories.has-category-images
    .takeaway-menu-category-heading:not(.has-image)
    .takeaway-menu-category-copy {
    grid-column: 2;
}

.takeaway-menu-category-image img {
    border-radius: .4rem;
    display: block;
    height: 1.75rem;
    object-fit: cover;
    width: 1.75rem;
}

.takeaway-menu-category-copy {
    display: grid;
    line-height: 1.2;
    min-width: 0;
}

.takeaway-menu-category-copy small {
    color: var(--takeaway-menu-muted);
    font-size: .72em;
    font-weight: 500;
    margin-top: .12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.takeaway-menu-dialog button:focus-visible,
.takeaway-menu-product a:focus-visible {
    outline: 3px solid #7096ef;
    outline-offset: 3px;
}

.takeaway-menu-category-heading h2 button:focus {
    box-shadow: none;
    outline: none;
}

.takeaway-menu-category-heading h2 button:focus-visible > span:first-child {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .18em;
}

.takeaway-menu-chevron {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    height: .65rem;
    transform: rotate(45deg);
    transition: transform .16s ease;
    width: .65rem;
}

[aria-expanded="true"] .takeaway-menu-chevron {
    transform: rotate(225deg);
}

.takeaway-menu-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.takeaway-menu-products[hidden] {
    display: none;
}

.takeaway-menu-product {
    align-items: start;
    border-bottom: 1px solid var(--takeaway-menu-border);
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    padding: 1rem;
}

.takeaway-menu-products.has-product-images .takeaway-menu-product {
    grid-template-columns: 4rem minmax(0, 1fr);
}

.takeaway-menu-products.has-product-images
    .takeaway-menu-product:not(.has-image)
    .takeaway-menu-product-content {
    grid-column: 2;
}

.takeaway-menu-product:nth-child(odd) {
    border-right: 1px solid var(--takeaway-menu-border);
}

.takeaway-menu-product-image {
    grid-row: 1;
}

.takeaway-menu-product-image img {
    border-radius: .5rem;
    display: block;
    height: 4rem;
    object-fit: cover;
    width: 4rem;
}

.takeaway-menu-product-content,
.takeaway-menu-product-copy {
    min-width: 0;
}

.takeaway-menu-product-summary {
    align-items: center;
    display: grid;
    gap: .65rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.takeaway-menu-product-summary h3 {
    font-size: 1.1rem;
    font-weight: 750;
    line-height: 1.25;
}

.takeaway-customer-menu .takeaway-menu-product .takeaway-menu-product-summary h3 a {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.takeaway-menu-product-copy > p {
    font-size: .9rem;
    line-height: 1.45;
}

.takeaway-menu-food-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: .55rem;
    margin: 1rem 0;
    padding: .8rem;
    background: var(--takeaway-menu-soft, #f5f7fb);
    border: 1px solid var(--takeaway-menu-border, #d8dee8);
    border-radius: .55rem;
}

.takeaway-menu-food-info > div {
    min-width: 0;
}

.takeaway-menu-food-info > div.is-wide {
    grid-column: 1 / -1;
}

.takeaway-menu-food-info > div.is-allergen,
.takeaway-menu-food-info > div.is-allergen dt {
    color: #b32d2e;
}

.takeaway-menu-food-info > div.is-allergen dd {
    font-weight: 700;
}

.takeaway-menu-food-info dt {
    color: var(--takeaway-menu-muted, #5b6472);
    font-size: .78rem;
    font-weight: 700;
}

.takeaway-menu-food-info dd {
    margin: .1rem 0 0;
    overflow-wrap: anywhere;
}

.takeaway-menu-food-info.is-compact {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .65rem;
    margin: .45rem 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    font-size: .78rem;
    line-height: 1.35;
}

.takeaway-menu-food-info.is-compact > div {
    align-items: baseline;
    display: flex;
    gap: .2rem;
    max-width: 100%;
}

.takeaway-menu-food-info.is-compact > div.is-dietary {
    flex: 0 1 auto;
}

.takeaway-menu-food-info.is-compact > div:not(.is-dietary) {
    flex: 1 0 100%;
}

.takeaway-menu-food-info.is-compact > div.is-wide {
    display: block;
}

.takeaway-menu-food-info.is-compact > div:not(.is-allergen) dt {
    white-space: nowrap;
}

.takeaway-menu-food-info.is-compact dt::after {
    content: ":";
}

.takeaway-menu-food-info.is-compact .is-dietary dt::after {
    content: "";
}

.takeaway-menu-food-info.is-compact dd {
    min-width: 0;
    margin: 0;
}

.takeaway-menu-food-info.is-compact .is-allergen dt,
.takeaway-menu-food-info.is-compact .is-allergen dd {
    display: inline;
    white-space: normal;
}

.takeaway-menu-food-info.is-compact .is-spice dd {
    font-size: .95rem;
    letter-spacing: .05rem;
    line-height: 1;
}

.takeaway-menu-product-order {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: .65rem;
}

.takeaway-menu-product-price {
    font-size: 1.08rem;
    font-weight: 750;
    white-space: nowrap;
}

.takeaway-menu-product-order .takeaway-menu-simple-form {
    display: flex;
    flex: 0 0 2.6rem;
    margin: 0;
}

.takeaway-customer-menu .button,
.takeaway-menu-dialog .button {
    background: var(--takeaway-menu-accent);
    border: 0;
    border-radius: .5rem;
    color: var(--takeaway-menu-accent-contrast);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.25;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: .65rem .8rem;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}

.takeaway-customer-menu .button:disabled {
    background: #737b88;
    cursor: not-allowed;
}

.takeaway-customer-menu .takeaway-menu-add-button {
    align-items: center;
    background: transparent;
    border: 2px solid var(--takeaway-menu-accent);
    border-radius: 50%;
    color: var(--takeaway-menu-accent);
    flex: 0 0 2.6rem;
    font-size: 2rem;
    height: 2.6rem;
    line-height: 1;
    padding: 0 0 .12rem;
    width: 2.6rem;
}

.takeaway-customer-menu .takeaway-menu-add-button:focus-visible,
.takeaway-customer-menu .takeaway-menu-add-button:hover {
    background: var(--takeaway-menu-accent);
    color: var(--takeaway-menu-accent-contrast);
}

.takeaway-customer-menu .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.takeaway-menu-dialog {
    background: var(--takeaway-menu-surface);
    border: 0;
    border-radius: .9rem;
    box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, .28);
    color: #172033;
    max-height: min(88vh, 52rem);
    max-width: min(94vw, 42rem);
    padding: 0;
    width: 100%;
}

.takeaway-menu-dialog::backdrop {
    background: rgba(15, 23, 42, .65);
}

.takeaway-menu-dialog-header,
.takeaway-menu-dialog-footer {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.15rem;
}

.takeaway-menu-dialog-header {
    border-bottom: 1px solid var(--takeaway-menu-border);
}

.takeaway-menu-dialog-header p,
.takeaway-menu-live-total {
    margin: .2rem 0 0;
}

.takeaway-menu-dialog-close {
    background: transparent;
    border: 0;
    color: #172033;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: .25rem .5rem;
}

.takeaway-menu-dialog-body {
    max-height: 58vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem 1.15rem;
}

.takeaway-menu-option-set + .takeaway-menu-option-set {
    border-top: 1px solid var(--takeaway-menu-border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.takeaway-menu-option-group {
    border: 0;
    margin: .8rem 0 0;
    padding: 0;
}

.takeaway-menu-option-set > .takeaway-menu-option-group:first-child {
    margin-top: 0;
}

.takeaway-menu-option-group legend {
    font-weight: 700;
    padding: 0;
    text-align: left;
}

.takeaway-menu-option-help {
    color: var(--takeaway-menu-muted);
    font-size: .84rem;
    margin: .15rem 0 .5rem;
}

.takeaway-menu-option-choices {
    display: grid;
    gap: .45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.takeaway-menu-option-choices label {
    align-items: center;
    background: var(--takeaway-menu-soft);
    border: 1px solid var(--takeaway-menu-border);
    border-radius: .45rem;
    display: grid;
    gap: .45rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: .6rem;
}

.takeaway-menu-option-choices input {
    height: 1.1rem;
    margin: 0;
    width: 1.1rem;
}

.takeaway-menu-option-group textarea {
    border: 1px solid var(--takeaway-menu-border);
    border-radius: .45rem;
    display: block;
    margin-top: .4rem;
    max-width: 100%;
    min-height: 0;
    padding: .65rem;
    resize: vertical;
    width: 100%;
}

.takeaway-menu-dialog-footer {
    border-top: 1px solid var(--takeaway-menu-border);
}

.takeaway-menu-product-copy > p > a {
    color: inherit;
    text-decoration: none;
}

.takeaway-menu-product-copy > p > a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    body.takeaway-customer-context-menu .takeaway-customer-menu {
        max-width: 50rem;
    }

    body.takeaway-customer-context-menu .takeaway-menu-category {
        background: #f3f3f3;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: .75rem;
    }

    body.takeaway-customer-context-menu .takeaway-menu-category-heading {
        background: #f3f3f3;
        padding: .45rem 1rem;
    }

    body.takeaway-customer-context-menu .takeaway-menu-category-heading h2 {
        font-size: 1.45rem;
    }

    body.takeaway-customer-context-menu
        .takeaway-menu-category-heading h2 button {
        font-weight: 400;
        min-height: 2rem;
        padding: 0;
    }

    body.takeaway-customer-context-menu .takeaway-menu-chevron {
        border: 0;
        height: .875rem;
        position: relative;
        transform: none;
        width: .875rem;
    }

    body.takeaway-customer-context-menu .takeaway-menu-chevron::before,
    body.takeaway-customer-context-menu .takeaway-menu-chevron::after {
        background: currentColor;
        content: "";
        left: 50%;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    body.takeaway-customer-context-menu .takeaway-menu-chevron::before {
        height: 2px;
        width: 100%;
    }

    body.takeaway-customer-context-menu .takeaway-menu-chevron::after {
        height: 100%;
        transition: transform .16s ease;
        width: 2px;
    }

    body.takeaway-customer-context-menu
        [aria-expanded="true"] .takeaway-menu-chevron {
        transform: none;
    }

    body.takeaway-customer-context-menu
        [aria-expanded="true"] .takeaway-menu-chevron::after {
        transform: translate(-50%, -50%) scaleY(0);
    }

    body.takeaway-customer-context-menu .takeaway-menu-products {
        background: #f3f3f3;
        grid-template-columns: minmax(0, 1fr);
        padding: 0 1rem 2.25rem;
    }

    body.takeaway-customer-context-menu .takeaway-menu-product,
    body.takeaway-customer-context-menu
        .takeaway-menu-product:nth-child(odd) {
        border-bottom: 1px dashed #c8c8c8;
        border-right: 0;
        padding: .65rem 0;
    }

    body.takeaway-customer-context-menu
        .takeaway-menu-product-summary h3 {
        font-size: 1.15rem;
        font-weight: 600;
    }

    body.takeaway-customer-context-menu .takeaway-menu-product-price {
        font-size: 1.05rem;
    }

    body.takeaway-customer-context-menu .takeaway-menu-product-order
        .takeaway-menu-simple-form {
        flex-basis: 2rem;
    }

    body.takeaway-customer-context-menu .takeaway-menu-add-button {
        flex-basis: 2rem;
        font-size: 1.5rem;
        height: 2rem;
        width: 2rem;
    }
}

@media (max-width: 767px) {
    body.takeaway-menu-page .takeaway-customer-menu {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 760px) {
    .takeaway-menu-products {
        grid-template-columns: minmax(0, 1fr);
    }

    .takeaway-menu-product:nth-child(odd) {
        border-right: 0;
    }

    .takeaway-menu-product {
        grid-template-columns: minmax(0, 1fr);
    }

    .takeaway-menu-product.has-image {
        grid-template-columns: auto minmax(0, 1fr);
    }

}

@media (max-width: 480px) {
    .takeaway-menu-option-choices {
        grid-template-columns: minmax(0, 1fr);
    }

    .takeaway-menu-dialog-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .takeaway-menu-chevron {
        transition: none;
    }
}
