/*
 * Classic customer menu: visual refresh (typography, spacing, layout).
 * Styles only. Remove the <link> in classic.blade.php to roll back.
 * The restaurant's own colour (--color-base) is kept.
 */

@font-face {
    font-family: 'Cairo Menu';
    src: url('../fonts/Cairo-Upright-Arabic.woff2') format('woff2');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: 'Cairo Menu';
    src: url('../fonts/Cairo-Upright-Latin.woff2') format('woff2');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. One typeface on the whole customer page ---------- */
html body.shop-customer-font,
html body.shop-customer-font :is(input, select, textarea, button, h1, h2, h3, h4, h5, h6),
html body .shop-classic-menu-shell,
html body .shop-classic-option-dialog,
html body.shop-customer-font [class*="shop-customer-"],
html body.shop-customer-font [class*="shop-contact-floating"] {
    font-family: 'Cairo Menu', Cairo, Tajawal, sans-serif !important;
}

/* ---------- 2. Light surface tokens ---------- */
html body .shop-classic-menu-shell {
    --shop-ink: #17171a;
    --shop-muted: #62626b;
    --shop-line: #ececee;
    --shop-soft: #f5f5f6;
    --menu-radius: 12px;
    --menu-gap: 28px;
}

/* ---------- 3. Phone layout ---------- */
@media (max-width: 767.98px) {

    /* One left/right edge for every block */
    html body .shop-classic-menu-shell :is(.shop-classic-discovery__inner, .shop-classic-menu-tabs__inner,
        .shop-classic-category-bar__inner, .shop-classic-products, .shop-classic-popular,
        .shop-classic-popular__inner, .shop-classic-contact-strip__inner) {
        max-width: none;
        padding-inline: 0;
    }

    /* Calmer top area: whitespace separates the controls, not a line under each one */
    html body .shop-classic-menu-shell :is(.shop-classic-contact-strip, .shop-classic-discovery,
        .shop-classic-order-context, .shop-classic-menu-tabs) {
        border: 0 !important;
        box-shadow: none !important;
    }

    html body .shop-classic-menu-shell .shop-classic-contact-strip { padding: 8px 0 4px; }
    html body .shop-classic-menu-shell .shop-classic-contact-strip__branch { min-height: 44px; font-size: 13px; }
    html body .shop-classic-menu-shell .shop-classic-contact-action { width: 44px; height: 44px; min-height: 44px; border-radius: var(--menu-radius); }
    html body .shop-classic-menu-shell .shop-classic-order-context { margin-top: 8px; padding-top: 0; }
    html body .shop-classic-menu-shell .shop-classic-branch-option { min-height: 44px; border-radius: 999px; padding-inline: 16px; font-size: 13px; }
    html body .shop-classic-menu-shell .shop-classic-menu-select { margin-block: 8px 0; }
    html body .shop-classic-menu-shell .shop-classic-menu-select select { min-height: 48px; border-radius: var(--menu-radius); font-weight: 700; }
    html body .shop-classic-menu-shell .shop-classic-category-bar { border-top: 0; box-shadow: none; padding-block: 0; }

    /* Field labels stay for screen readers; the controls already say what they are */
    html body .shop-classic-menu-shell .shop-classic-filter-label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    html body .shop-classic-menu-shell { padding-bottom: 96px; }

    /* Search */
    html body .shop-classic-menu-shell .shop-classic-search input {
        min-height: 48px;
        border-radius: var(--menu-radius);
        font-size: 16px; /* 16px stops iOS zooming on focus */
        font-weight: 500;
    }

    /* Order type: three equal segments */
    html body .shop-classic-menu-shell .shop-classic-order-picker__options {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 4px;
        border: 0 !important;
        border-radius: var(--menu-radius);
        padding: 4px;
    }

    html body .shop-classic-menu-shell .shop-classic-order-type {
        min-width: 0;
        min-height: 44px;
        justify-content: center;
        border: 0;
        border-radius: 9px;
        padding-inline: 4px;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }

    /* Words only: three Arabic labels do not fit beside icons on a phone */
    html body .shop-classic-menu-shell .shop-classic-order-type__icon { display: none; }

    /* Category chips */
    html body .shop-classic-menu-shell .shop-classic-category-strip { padding-block: 10px; }
    html body .shop-classic-menu-shell .shop-classic-category-nav { gap: 8px; }

    html body .shop-classic-menu-shell .shop-classic-category-pill {
        min-height: 44px;
        gap: 8px;
        border-radius: 999px;
        padding: 6px 16px;
        font-size: 14px;
        font-weight: 700;
    }

    html body .shop-classic-menu-shell .shop-classic-category-image {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        border-radius: 999px;
        margin-inline-start: -8px;
    }

    html body .shop-classic-menu-shell .shop-classic-category-count {
        min-width: 0;
        height: auto;
        background: transparent;
        padding: 0;
        color: inherit;
        font-size: 12px;
        font-weight: 600;
        opacity: .65;
    }

    /* Section headings */
    html body .shop-classic-menu-shell .shop-classic-popular { margin-top: 16px; }

    html body .shop-classic-menu-shell :is(.shop-classic-popular__heading, .shop-classic-category-heading) {
        margin: 0 0 8px;
        font-size: 20px;
        font-weight: 800;
        line-height: 1.5;
    }

    html body .shop-classic-menu-shell .shop-classic-products { padding-top: 20px; padding-bottom: 0; }
    html body .shop-classic-menu-shell .shop-classic-category-section + .shop-classic-category-section { margin-top: var(--menu-gap); }

    /* Menu list: open rows with hairlines instead of a box around every item */
    html body .shop-classic-menu-shell .shop-classic-product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    html body .shop-classic-menu-shell .shop-classic-menu-item-card {
        border: 0 !important;
        border-bottom: 1px solid var(--shop-line) !important;
        border-radius: 0 !important;
        background: transparent;
        box-shadow: none;
    }

    html body .shop-classic-menu-shell .shop-classic-menu-item-card:last-child { border-bottom: 0 !important; }

    html body .shop-classic-menu-shell .shop-classic-menu-item-content {
        grid-template-columns: 104px minmax(0, 1fr);
        align-items: start;
        gap: 14px !important;
        padding: 16px 0 !important;
    }

    html body .shop-classic-menu-shell .shop-classic-menu-item-content.has-no-image { grid-template-columns: minmax(0, 1fr); }

    html body .shop-classic-menu-shell .shop-classic-menu-item-media {
        width: 104px;
        height: 104px;
        min-height: 104px;
        max-height: 104px;
        flex-basis: 104px;
        border-radius: var(--menu-radius);
        overflow: hidden;
    }

    html body .shop-classic-menu-shell .shop-classic-menu-item-details {
        min-height: 104px;
        gap: 2px;
    }

    html body .shop-classic-menu-shell .shop-classic-menu-item-title {
        align-items: center;
        gap: 6px;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.55;
    }

    html body .shop-classic-menu-shell .shop-classic-menu-item-title img { width: 14px; height: 14px; flex: 0 0 14px; }

    html body .shop-classic-menu-shell .shop-classic-menu-item-description {
        margin: 0;
        font-size: 13px;
        line-height: 1.6;
    }

    html body .shop-classic-menu-shell .shop-classic-prep-chip {
        align-self: flex-start;
        background: transparent;
        padding: 0;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.6;
    }

    html body .shop-classic-menu-shell .shop-classic-item-bottom {
        align-items: center;
        margin-top: auto;
        padding-top: 6px;
        min-height: 50px;
    }

    html body .shop-classic-menu-shell .shop-classic-item-price {
        font-size: 17px;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
    }

    html body .shop-classic-menu-shell .shop-classic-item-options-hint { font-size: 13px; font-weight: 700; }

    /* Popular row */
    html body .shop-classic-menu-shell .shop-classic-popular-card {
        width: 156px;
        flex-basis: 156px;
        border-color: var(--shop-line);
        border-radius: var(--menu-radius);
        box-shadow: none;
    }

    html body .shop-classic-menu-shell .shop-classic-popular-card__media { height: 116px; }
    html body .shop-classic-menu-shell .shop-classic-popular-card__title { font-size: 14px; font-weight: 700; line-height: 1.5; }
    html body .shop-classic-menu-shell .shop-classic-popular-card__price { font-size: 15px; font-weight: 800; }
}

/* Narrow phones (320-359px) */
@media (max-width: 359.98px) {
    html body .shop-classic-menu-shell .shop-classic-order-type { padding-inline: 2px; font-size: 11.5px; }
    html body .shop-classic-menu-shell .shop-classic-menu-item-content { grid-template-columns: 88px minmax(0, 1fr); gap: 12px !important; }
    html body .shop-classic-menu-shell .shop-classic-menu-item-content.has-no-image { grid-template-columns: minmax(0, 1fr); }
    html body .shop-classic-menu-shell .shop-classic-menu-item-media { width: 88px; height: 88px; min-height: 88px; max-height: 88px; flex-basis: 88px; }
}

/* English names or notes inside an Arabic menu stay on the reading edge */
html[dir="rtl"] body .shop-classic-menu-shell :is(.shop-classic-menu-item-description, .shop-classic-menu-item-title span) { text-align: right; }

/* ---------- 4. Light theme colour (dark theme keeps its own) ---------- */
html:not(.dark) body .shop-classic-menu-shell :is(.shop-classic-menu-item-title, .shop-classic-popular-card__title,
    .shop-classic-item-price, .shop-classic-popular-card__price, .shop-classic-category-heading,
    .shop-classic-popular__heading) {
    color: var(--shop-ink);
}

html:not(.dark) body .shop-classic-menu-shell :is(.shop-classic-menu-item-description, .shop-classic-prep-chip, .shop-classic-loading-state) {
    color: var(--shop-muted);
}

html:not(.dark) body .shop-classic-menu-shell .shop-classic-order-picker__options { background: var(--shop-soft); }
html:not(.dark) body .shop-classic-menu-shell .shop-classic-order-type { background: transparent; color: var(--shop-muted); }

html:not(.dark) body .shop-classic-menu-shell .shop-classic-order-type.is-active {
    background: #fff;
    color: rgb(var(--color-base));
    box-shadow: 0 1px 3px rgba(23, 23, 26, .12);
}

html:not(.dark) body .shop-classic-menu-shell .shop-classic-category-pill.is-active {
    border-color: rgb(var(--color-base)) !important;
    background: rgb(var(--color-base)) !important;
    color: #fff;
}

html:not(.dark) body .shop-classic-menu-shell .shop-classic-category-pill.is-active .shop-classic-category-count { color: #fff; }

/* The selected branch is disabled (it is already chosen); it should not look washed out */
html:not(.dark) body .shop-classic-menu-shell .shop-classic-branch-option.is-active { opacity: 1; }

/* Unavailable: quiet and clear, not alarming */
html:not(.dark) body .shop-classic-menu-shell .shop-classic-menu-item-card.is-unavailable { background: transparent; }

html:not(.dark) body .shop-classic-menu-shell .shop-classic-menu-item-card.is-unavailable
    :is(.shop-classic-menu-item-title, .shop-classic-item-price) {
    color: var(--shop-muted);
}

html:not(.dark) body .shop-classic-menu-shell .shop-classic-out-of-stock {
    min-height: 0;
    border-radius: 999px;
    background: var(--shop-soft);
    padding: 4px 12px;
    color: var(--shop-muted);
    font-size: 12px;
    font-weight: 700;
}

/* ---------- 5. Contact button: a compact circle that leaves the menu readable ---------- */
@media (max-width: 767.98px) {
    html body .shop-contact-floating-trigger {
        width: 52px;
        min-width: 52px;
        height: 52px;
        border-radius: 999px;
        padding: 0;
    }

    html body .shop-contact-floating-trigger > span { display: none; }
}

/* ======================================================================
 * Approved look: black on white, colour from the restaurant theme and from meaning.
 * ====================================================================== */
html body.shop-customer-font { --m-ink: #161616; --m-muted: #6b6b6b; --m-line: #e9e9e7; --m-page: #ffffff; background: var(--m-page) !important; }

html:not(.dark) body #shop-cart-root { background: var(--m-page) !important; }

/* Header: a name and two icons */
html:not(.dark) body .shop-customer-nav,
html:not(.dark) body .shop-customer-nav__bar { background: var(--m-page) !important; border-color: var(--m-line) !important; box-shadow: none !important; }
html:not(.dark) body .shop-customer-nav__brand > :first-child:not(.shop-customer-nav__brand-copy) { display: none !important; }
html:not(.dark) body .shop-customer-nav__brand-copy * { color: var(--m-ink) !important; }
html:not(.dark) body .shop-customer-nav__bar :is(button, a):not(.shop-customer-nav__brand) { background: transparent !important; border-color: transparent !important; box-shadow: none !important; color: var(--m-ink) !important; }

@media (max-width: 767.98px) {
    html body .shop-customer-nav__brand-copy > :first-child { font-size: 19px; font-weight: 800; }

    /* Photo banner: low and square-cornered */
    html body .shop-header-carousel-frame { max-height: 148px; border-radius: 4px; box-shadow: none; }

    /* Address and contact: one quiet line */
    html body .shop-classic-menu-shell .shop-classic-contact-strip { padding: 4px 0 0; }
    html body .shop-classic-menu-shell .shop-classic-contact-strip__branch { color: var(--m-muted) !important; font-size: 13px; font-weight: 500; }
    html body .shop-classic-menu-shell .shop-classic-contact-action,
    html body .shop-classic-menu-shell .shop-classic-contact-action.is-whatsapp { border: 0 !important; background: transparent !important; color: var(--m-ink) !important; }

    /* Search: a line, not a box */
    html body .shop-classic-menu-shell .shop-classic-search input { border: 0 !important; border-bottom: 1px solid var(--m-line) !important; border-radius: 0; box-shadow: none !important; background: transparent !important; }
    html body .shop-classic-menu-shell .shop-classic-search__icon { background: transparent !important; color: var(--m-muted) !important; }

    /* Order type: words with an underline */
    html body .shop-classic-menu-shell .shop-classic-order-context { margin-top: 4px; }
    html body .shop-classic-menu-shell :is(.shop-classic-order-picker, .shop-classic-order-picker__inner) { background: transparent !important; }
    html body .shop-classic-menu-shell .shop-classic-order-picker__options { gap: 0; border-radius: 0; background: transparent !important; padding: 0; }
    html body .shop-classic-menu-shell .shop-classic-order-type { border-radius: 0; border-bottom: 1px solid var(--m-line) !important; background: transparent !important; box-shadow: none !important; color: var(--m-muted); font-weight: 600; }
    html body .shop-classic-menu-shell .shop-classic-order-type.is-active { border-bottom: 2px solid var(--m-ink) !important; color: var(--m-ink); font-weight: 800; }

    /* Branch buttons repeat the branch switcher in the header menu */
    html body .shop-classic-menu-shell .shop-classic-branch-picker { display: none; }

    /* Menu filter: plain text with its arrow */
    html body .shop-classic-menu-shell .shop-classic-menu-select { margin: 0; }
    html body .shop-classic-menu-shell .shop-classic-menu-select select { min-height: 44px; border: 0 !important; border-radius: 0; box-shadow: none !important; background-color: transparent !important; color: var(--m-muted); font-size: 14px; font-weight: 600; }

    /* Categories: text tabs, no pictures or counters */
    html body .shop-classic-menu-shell .shop-classic-category-bar { border-bottom: 1px solid var(--m-line) !important; }
    html body .shop-classic-menu-shell .shop-classic-category-strip { padding-block: 0; }
    html body .shop-classic-menu-shell .shop-classic-category-nav { gap: 24px; }
    html body .shop-classic-menu-shell .shop-classic-category-pill,
    html body .shop-classic-menu-shell .shop-classic-category-pill.is-active { min-height: 48px; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0; background: transparent !important; padding: 0; color: var(--m-muted) !important; font-size: 15px; font-weight: 600; }
    html body .shop-classic-menu-shell .shop-classic-category-pill.is-active { border-bottom-color: var(--m-ink) !important; color: var(--m-ink) !important; font-weight: 800; }
    html body .shop-classic-menu-shell .shop-classic-category-pill.is-active span { color: var(--m-ink) !important; }
    html body .shop-classic-menu-shell :is(.shop-classic-category-image, .shop-classic-category-count) { display: none; }

    /* The popular row repeats items that are in the list below */
    html body .shop-classic-menu-shell .shop-classic-popular { display: none; }

    /* The list */
    html body .shop-classic-menu-shell .shop-classic-products { padding-top: 8px; }
    html body .shop-classic-menu-shell .shop-classic-category-section + .shop-classic-category-section { margin-top: 32px; }
    html body .shop-classic-menu-shell .shop-classic-category-heading { margin: 0; border-bottom: 1px solid var(--m-ink); padding: 20px 0 8px; color: var(--m-ink); font-size: 24px; font-weight: 800; }
    html body .shop-classic-menu-shell .shop-classic-category-heading__image { display: none; }
    html body .shop-classic-menu-shell .shop-classic-menu-item-content { grid-template-columns: 88px minmax(0, 1fr); gap: 16px !important; padding: 18px 0 !important; }
    html body .shop-classic-menu-shell .shop-classic-menu-item-content.has-no-image { grid-template-columns: minmax(0, 1fr); }
    html body .shop-classic-menu-shell .shop-classic-menu-item-media { width: 88px; height: 88px; min-height: 88px; max-height: 88px; flex-basis: 88px; border-radius: 4px; background: #f4f4f2 !important; }
    html body .shop-classic-menu-shell .shop-classic-menu-item-image-placeholder { background: #f4f4f2 !important; color: #b5b5b0; }
    /* Photo on the far side, words lead */
    html body .shop-classic-menu-shell .shop-classic-menu-item-content:not(.has-no-image) { grid-template-columns: minmax(0, 1fr) 88px; }
    html body .shop-classic-menu-shell .shop-classic-menu-item-content:not(.has-no-image) > .shop-classic-menu-item-media { order: 2; }
    html body .shop-classic-menu-shell .shop-classic-menu-item-details { min-height: 88px; }
    html body .shop-classic-menu-shell .shop-classic-menu-item-title { font-size: 17px; font-weight: 700; }
    html body .shop-classic-menu-shell :is(.shop-classic-menu-item-title img, .shop-classic-prep-chip) { display: none; }
    html body .shop-classic-menu-shell .shop-classic-item-bottom { min-height: 44px; padding-top: 4px; }
    html body .shop-classic-menu-shell .shop-classic-item-price { font-size: 16px; font-weight: 700; }
    html body .shop-classic-menu-shell .shop-classic-item-options-hint { color: var(--m-muted) !important; font-weight: 600; }

    /* One round outline button; notes stay available in the cart */
    html body .shop-classic-menu-shell .shop-classic-note-button { display: none; }
    html body .shop-classic-menu-shell .shop-classic-add-button { width: 44px; min-width: 44px; height: 44px; border: 1px solid var(--m-ink) !important; border-radius: 999px; background: transparent !important; box-shadow: none !important; color: var(--m-ink) !important; }
    html body .shop-classic-menu-shell .shop-classic-qty-control { border-color: var(--m-ink) !important; border-radius: 999px; background: transparent !important; }
    html body .shop-classic-menu-shell .shop-classic-qty-control button { border: 0 !important; border-radius: 999px; background: transparent !important; box-shadow: none !important; color: var(--m-ink) !important; }

    /* Unavailable */
    html body .shop-classic-menu-shell .shop-classic-menu-item-card.is-unavailable .shop-classic-menu-item-media { opacity: .45; }
    html:not(.dark) body .shop-classic-menu-shell .shop-classic-out-of-stock { background: transparent; padding: 0; color: var(--m-muted); font-weight: 600; }

    /* Contact button: white, out of the way */
    html body .shop-contact-floating-trigger { width: 48px; min-width: 48px; height: 48px; border: 1px solid var(--m-line) !important; background: #fff !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .12) !important; color: var(--m-ink) !important; }
}

@media (max-width: 767.98px) {
    /* Win over the filled active chip and any highlight of an item that is in the cart */
    html:not(.dark) body .shop-classic-menu-shell .shop-classic-category-bar .shop-classic-category-pill.is-active { border-color: transparent !important; border-bottom-color: var(--m-ink) !important; background: transparent !important; color: var(--m-ink) !important; }
    html:not(.dark) body .shop-classic-menu-shell .shop-classic-product-grid .shop-classic-menu-item-card { border-width: 0 0 1px !important; border-color: var(--m-line) !important; border-radius: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; }
    html:not(.dark) body .shop-classic-menu-shell .shop-classic-product-grid .shop-classic-menu-item-card:last-child { border-width: 0 !important; }
    html body .shop-classic-menu-shell .shop-classic-item-actions .shop-classic-add-button { border-radius: 999px !important; }
    html body .shop-classic-menu-shell .shop-classic-item-actions.has-quantity { border: 0 !important; background: transparent !important; box-shadow: none !important; }
    html body .shop-classic-menu-shell .shop-classic-order-picker .shop-classic-order-type { border-radius: 0 !important; border-width: 0 0 1px !important; border-style: solid !important; }
    html body .shop-classic-menu-shell .shop-classic-order-picker .shop-classic-order-type.is-active { border-bottom-width: 2px !important; }
    html:not(.dark) body .shop-classic-menu-shell .shop-classic-menu-select select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b6b6b' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: left 4px center !important; padding-inline: 0 24px; }
    html[dir="ltr"] body .shop-classic-menu-shell .shop-classic-menu-select select { background-position: right 4px center !important; }

    /* Keep the contact button on the photo side, away from prices */
    html[dir="rtl"] body .shop-contact-floating-root { right: auto !important; left: 12px !important; align-items: flex-end; }
}

@media (max-width: 767.98px) {
    /* Straight underlines and a true circle */
    html:not(.dark) body .shop-classic-menu-shell .shop-classic-category-bar .shop-classic-category-nav .shop-classic-category-pill { border-radius: 0 !important; }
    html:not(.dark) body .shop-classic-menu-shell .shop-classic-order-context .shop-classic-order-picker__options > .shop-classic-order-type { border-radius: 0 !important; }
    html:not(.dark) body .shop-classic-menu-shell .shop-classic-menu-item-card .shop-classic-item-actions button.shop-classic-add-button.shop-classic-add-button { border-radius: 50% !important; }
}
@media (max-width: 767.98px) {
    /* The app stylesheet forces every button in #main-content to 12px corners */
    html body #main-content .shop-classic-menu-shell button.shop-classic-category-pill,
    html body #main-content .shop-classic-menu-shell button.shop-classic-order-type { border-radius: 0 !important; }
    html body #main-content .shop-classic-menu-shell button.shop-classic-add-button,
    html body #main-content .shop-classic-menu-shell .shop-classic-qty-control button { border-radius: 999px !important; }
}

/*
 * Colour where it means something: status, warnings, icons and the one action.
 * The page itself stays black on white.
 */
/* The restaurant's theme colour drives the actions and icons. */
html body.shop-customer-font { --m-action: rgb(var(--color-base)); }
/* A very light theme colour is darkened just enough for white text and icons on white. */
@supports (color: oklch(from red l c h)) {
    html body.shop-customer-font { --m-action: oklch(from rgb(var(--color-base)) min(l, 0.55) c h); }
}
/* Meaning keeps its own colour: open, WhatsApp, warnings. */
html body.shop-customer-font { --m-ok: #157f3b; --m-wa: #128c4b; --m-warn-bg: #fff4db; --m-warn-line: #f2c14e; --m-warn-ink: #7a4b00; }

/* Open / closed */
html:not(.dark) body .shop-customer-nav .shop-customer-nav__brand-copy .shop-customer-nav__brand-status { color: var(--m-ok) !important; }
html:not(.dark) body .shop-customer-nav .shop-customer-nav__brand-copy .shop-customer-nav__brand-status.is-closed { color: #b45309 !important; }
html:not(.dark) body .shop-customer-nav .shop-customer-nav__cart-count { background: var(--m-action) !important; color: #fff !important; }
html:not(.dark) body .shop-customer-nav .shop-customer-nav__brand-copy .shop-customer-nav__cart-count { color: #fff !important; }

/* Warnings and notices: amber box with a warning sign */
html:not(.dark) body #shop-cart-root :is(p[role="status"], .shop-checkout-status, [role="alert"]) {
    border: 1px solid var(--m-warn-line) !important;
    border-radius: 10px !important;
    background: var(--m-warn-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%23f59f00'%3E%3Cpath d='M12 2 1 21h22L12 2Z'/%3E%3Cpath d='M11 9h2v6h-2zM11 17h2v2h-2z' fill='%23fff'/%3E%3C/svg%3E") no-repeat right 12px top 12px !important;
    padding: 12px 42px 12px 14px !important;
    color: var(--m-warn-ink) !important;
    text-align: right;
}
html:not(.dark)[dir="ltr"] body #shop-cart-root :is(p[role="status"], .shop-checkout-status, [role="alert"]) { background-position: left 12px top 12px !important; padding: 12px 14px 12px 42px !important; text-align: left; }
html:not(.dark) body #shop-cart-root :is(.shop-checkout-status, [role="alert"]) :is(p, span, strong) { color: var(--m-warn-ink) !important; }
html:not(.dark) body #shop-cart-root p[role="status"][style*="display: none"] { display: none !important; }

@media (max-width: 767.98px) {
    /* Icons */
    html body .shop-classic-menu-shell .shop-classic-contact-action { color: var(--m-action) !important; }
    html body .shop-classic-menu-shell .shop-classic-contact-action.is-whatsapp { color: var(--m-wa) !important; }
    html body .shop-classic-menu-shell .shop-classic-contact-strip__branch svg { color: var(--m-action); }
    html body .shop-classic-menu-shell .shop-classic-search__icon { color: var(--m-action) !important; }
    html body .shop-contact-floating-trigger { color: var(--m-wa) !important; }

    /* Order type: a coloured icon over each word */
    html body .shop-classic-menu-shell .shop-classic-order-picker__options > .shop-classic-order-type { min-height: 60px; flex-direction: column; justify-content: center; gap: 2px; }
    html body .shop-classic-menu-shell .shop-classic-order-type .shop-classic-order-type__icon { display: flex; width: 22px; height: 22px; flex-basis: auto; background: transparent !important; }
    html body .shop-classic-menu-shell .shop-classic-order-type .shop-classic-order-type__icon svg { width: 22px; height: 22px; }
    html body .shop-classic-menu-shell .shop-classic-order-type .shop-classic-order-type__icon { color: var(--m-action) !important; }
    html body .shop-classic-menu-shell .shop-classic-order-picker__options > .shop-classic-order-type.is-active { border-bottom-color: var(--m-action) !important; }

    /* Where you are, and the one action */
    html:not(.dark) body .shop-classic-menu-shell .shop-classic-category-bar .shop-classic-category-nav .shop-classic-category-pill.is-active { border-bottom-color: var(--m-action) !important; }
    html body #main-content .shop-classic-menu-shell button.shop-classic-add-button { border-color: var(--m-action) !important; background: var(--m-action) !important; color: #fff !important; }
    html body .shop-classic-menu-shell .shop-classic-qty-control { border-color: var(--m-action) !important; }
    html body .shop-classic-menu-shell .shop-classic-qty-control button { color: var(--m-action) !important; }
    html body .shop-classic-menu-shell .shop-classic-item-options-hint { color: var(--m-action) !important; }

    /* Diet mark and preparation time are information, so they stay, in colour */
    html body .shop-classic-menu-shell .shop-classic-menu-item-title img { display: inline-block; width: 14px; height: 14px; }
    html body .shop-classic-menu-shell .shop-classic-prep-chip { display: inline-flex; align-items: center; gap: 5px; color: var(--m-muted); }
    html body .shop-classic-menu-shell .shop-classic-prep-chip::before { content: ''; width: 14px; height: 14px; flex: 0 0 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8890c' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
}


@media (max-width: 767.98px) {
    html body .shop-classic-menu-shell .shop-classic-menu-item-card .shop-classic-menu-item-details > .shop-classic-prep-chip.shop-classic-prep-chip { display: inline-flex; }
    html:not(.dark) body #main-content #shop-cart-root button.shop-primary-button { border-color: var(--m-action) !important; background: var(--m-action) !important; color: #fff !important; }
}
/* The chosen order type reads in ink; its icon and underline carry the theme colour */
html:not(.dark) body #main-content .shop-classic-menu-shell .shop-classic-order-picker__options > .shop-classic-order-type.is-active,
html:not(.dark) body #main-content .shop-classic-menu-shell .shop-classic-order-type.is-active .shop-classic-order-type__name { color: var(--m-ink) !important; }
