/* Gast-/Kiosk-CSS: nur Touch-Tweaks ueber MudBlazor.
   Default-Theme bleibt; nur Buttons groesser und Tap-Targets weicher. */

html, body {
    margin: 0;
    padding: 0;
    background: #fafafa;
    overscroll-behavior-y: contain; /* kein Pull-to-Refresh, wichtig fuer Kiosk */
    -webkit-tap-highlight-color: transparent;
}

/* Touch-targets: MudBlazor-Buttons groesser. */
.mud-button-root {
    min-height: 44px;
}

/* Primaere "Hinzufuegen"/"Bestellen"-Buttons in Listen sollen wuchtig sein. */
.xso-cta.mud-button-root {
    min-height: 56px;
    font-size: 1.05rem;
}

/* Produkt-Karten: Tap-Feedback. */
.xso-product-card {
    cursor: pointer;
    transition: transform 80ms ease;
}
.xso-product-card:active {
    transform: scale(0.98);
}

/* Cart-Sticky-Bar am unteren Rand fuer schmale Viewports. */
.xso-sticky-cart {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 12px 16px;
    z-index: 5;
}

/* Mobiloptimierung: keine horizontalen Scrollbalken. */
* { box-sizing: border-box; }

/* -------------------------------------------------------------------------
   Checkout: mobile-first Quick-Service-Shell
   ------------------------------------------------------------------------- */

.xso-checkout-layout,
.xso-checkout-main {
    min-height: 100dvh;
    background: #fffdfa;
}

.xso-checkout-main {
    padding-top: 0 !important;
}

.xso-checkout-page {
    --xso-ink: #171717;
    --xso-muted: #6c6c6c;
    --xso-yellow: #ffc608;
    --xso-yellow-soft: #fff4c7;
    --xso-red: #d80b28;
    --xso-red-dark: #b60720;
    --xso-line: #e6e1d8;
    --xso-page: #fffdfa;
    display: flex;
    height: 100dvh;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--xso-page);
    color: var(--xso-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.xso-checkout-hero {
    height: 164px;
    flex: 0 0 164px;
    padding: calc(14px + env(safe-area-inset-top)) 22px 18px;
    background-color: var(--xso-yellow);
    background-image: url("../images/checkout-accent.png"), url("../images/checkout-sunburst.png");
    background-position: right 10px top 12px, center bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 120px 120px, cover;
}

.xso-checkout-hero__top {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.xso-checkout-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: -10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--xso-ink);
    cursor: pointer;
}

.xso-checkout-back:hover {
    background: rgba(255, 255, 255, 0.34);
}

.xso-checkout-back:focus-visible,
.xso-tip-option:focus-visible,
.xso-contact-toggle:focus-visible {
    outline: 3px solid #172032;
    outline-offset: 2px;
}

.xso-checkout-back .mud-icon-root {
    font-size: 30px;
}

.xso-checkout-site {
    overflow: hidden;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xso-checkout-service {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff0b3;
    font-size: 1rem;
    font-weight: 650;
    white-space: nowrap;
}

.xso-checkout-service .mud-icon-root {
    font-size: 22px;
}

.xso-checkout-hero__copy {
    margin-top: 16px;
}

.xso-checkout-hero__copy h1 {
    margin: 0;
    font-size: clamp(2.25rem, 10vw, 2.7rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.xso-checkout-hero__copy p {
    margin: 8px 0 0;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.25;
}

.xso-checkout-form {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    margin: 0;
}

.xso-checkout-subtotal {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    flex: 0 0 auto;
    padding: 9px 22px;
    border-bottom: 1px solid #efe2b9;
    background: #fff8df;
    font-size: 1rem;
}

.xso-checkout-subtotal > strong {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.xso-checkout-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: #ffe9a0;
    color: var(--xso-ink);
}

.xso-checkout-icon-badge .mud-icon-root {
    font-size: 22px;
}

.xso-checkout-content {
    width: min(100%, 600px);
    min-height: 0;
    margin: 0 auto;
    padding: 18px 22px 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

.xso-checkout-section {
    margin: 0;
    padding: 0 0 17px;
    border-bottom: 1px solid var(--xso-line);
}

.xso-checkout-section + .xso-checkout-section {
    padding-top: 17px;
}

.xso-checkout-section h2 {
    margin: 0 0 11px;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.xso-checkout-section h2 span {
    font-weight: 500;
}

.xso-pickup-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 70px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--xso-yellow-soft);
    color: #5a4200;
}

.xso-pickup-notice > .mud-icon-root {
    flex: 0 0 auto;
    color: #efad00;
    font-size: 36px;
}

.xso-pickup-notice--error {
    background: #ffeded;
    color: #771426;
}

.xso-pickup-notice--error > .mud-icon-root {
    color: var(--xso-red);
}

.xso-pickup-retry {
    align-self: flex-start;
    min-height: 32px;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9e0822;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.xso-pickup-notice div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.xso-pickup-notice strong,
.xso-pickup-notice span {
    line-height: 1.25;
}

.xso-pickup-notice strong {
    font-size: 0.95rem;
    font-weight: 800;
}

.xso-pickup-notice span {
    font-size: 0.9rem;
}

.xso-checkout-select {
    width: 100%;
}

.xso-tip-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.xso-tip-option {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 48px;
    cursor: pointer;
}

.xso-tip-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.xso-tip-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 8px;
    border: 1px solid #a9a9a9;
    border-radius: 12px;
    background: #ffffff;
    color: var(--xso-ink);
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 80ms ease;
}

.xso-tip-option:active span {
    transform: scale(0.97);
}

.xso-tip-option input:checked + span {
    border-color: var(--xso-red);
    background: var(--xso-red);
    color: #ffffff;
    font-weight: 800;
}

.xso-tip-option input:focus-visible + span {
    outline: 3px solid #172032;
    outline-offset: 2px;
}

.xso-checkout-help {
    margin: 11px 0 0;
    color: var(--xso-muted);
    font-size: 0.92rem;
}

.xso-checkout-contact {
    padding-bottom: 14px;
}

.xso-contact-toggle {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--xso-ink);
    text-align: left;
    cursor: pointer;
}

.xso-contact-toggle > span:nth-child(2) {
    min-width: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.xso-contact-toggle > span:nth-child(2) strong {
    font-weight: 800;
}

.xso-contact-toggle > .mud-icon-root {
    justify-self: end;
    font-size: 28px;
}

.xso-contact-fields {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.xso-contact-field {
    margin: 0 !important;
}

.xso-contact-field .mud-input-control,
.xso-contact-field .mud-input-root {
    margin: 0 !important;
}

.xso-contact-field .mud-input-outlined {
    min-height: 46px;
    background: #ffffff;
}

.xso-contact-field input {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}

.xso-checkout-inline-error {
    margin: 8px 0 0;
    color: #b00020;
    font-size: 0.86rem;
    font-weight: 650;
}

.xso-checkout-action {
    position: relative;
    z-index: 20;
    width: min(100%, 600px);
    margin: 0 auto;
    flex: 0 0 auto;
    padding: 14px 22px calc(10px + env(safe-area-inset-bottom));
    border: 1px solid #e2ddd5;
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    background: #fffdfa;
    box-shadow: 0 -8px 28px rgba(41, 34, 24, 0.12);
}

.xso-checkout-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.xso-checkout-total > div {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.xso-checkout-total > div strong {
    font-size: 1.25rem;
    font-weight: 900;
}

.xso-checkout-total > div span {
    margin-top: 3px;
    color: var(--xso-muted);
    font-size: 0.78rem;
}

.xso-checkout-total > strong {
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.xso-checkout-submit.mud-button-root {
    min-height: 54px;
    border-radius: 12px;
    background: var(--xso-red);
    box-shadow: 0 5px 12px rgba(176, 7, 32, 0.2);
    color: #ffffff;
    font-size: 1.04rem;
    font-weight: 850;
    letter-spacing: -0.01em;
    text-transform: none;
}

.xso-checkout-submit.mud-button-root:hover {
    background: var(--xso-red-dark);
}

.xso-checkout-submit.mud-disabled {
    background: #b2a7a8;
    color: #ffffff;
}

.xso-checkout-legal {
    margin: 8px 4px 0;
    color: #616161;
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
}

.xso-checkout-state {
    display: flex;
    min-height: 260px;
    padding: 32px 24px;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.xso-checkout-state > .mud-icon-root {
    color: #8a6a00;
    font-size: 38px;
}

.xso-checkout-state--error > .mud-icon-root {
    color: var(--xso-red);
}

@media (max-width: 359px) {
    .xso-checkout-hero,
    .xso-checkout-content,
    .xso-checkout-action {
        padding-right: 16px;
        padding-left: 16px;
    }

    .xso-checkout-subtotal {
        padding-right: 16px;
        padding-left: 16px;
    }

    .xso-checkout-hero__copy h1 {
        font-size: 2.12rem;
    }

    .xso-checkout-service {
        padding: 0 11px;
    }

    .xso-tip-options {
        gap: 6px;
    }

    .xso-tip-option span {
        padding: 0 4px;
        font-size: 0.92rem;
    }
}

/* Beim geoeffneten Smartphone-Keyboard bleibt die Kaufaktion erreichbar,
   ohne die aktiven Kontaktfelder mit der kompletten Summary zu ueberdecken. */
@media (max-height: 640px) and (max-width: 719px) {
    .xso-checkout-action {
        padding-top: 9px;
    }

    .xso-checkout-total,
    .xso-checkout-legal {
        display: none;
    }
}

@media (min-width: 720px) {
    .xso-checkout-hero {
        height: 178px;
        flex-basis: 178px;
        padding-right: max(24px, calc((100% - 600px) / 2));
        padding-left: max(24px, calc((100% - 600px) / 2));
        background-position: calc(50% + 210px) 12px, center bottom;
    }

    .xso-checkout-subtotal {
        padding-right: max(24px, calc((100% - 600px) / 2));
        padding-left: max(24px, calc((100% - 600px) / 2));
    }

    .xso-checkout-action {
        border-bottom: 1px solid #e2ddd5;
        border-radius: 28px 28px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xso-tip-option span {
        transition: none;
    }
}

/* -------------------------------------------------------------------------
   Menu + Cart: gleiche Quick-Service-Sprache wie der Checkout
   ------------------------------------------------------------------------- */

.xso-menu-page,
.xso-cart-page,
.xso-product-dialog {
    --xso-ink: #171717;
    --xso-muted: #6c6c6c;
    --xso-yellow: #ffc608;
    --xso-yellow-soft: #fff4c7;
    --xso-red: #d80b28;
    --xso-red-dark: #b60720;
    --xso-line: #e6e1d8;
    --xso-page: #fffdfa;
    --mud-palette-primary: #d80b28;
    --mud-palette-primary-text: #ffffff;
}

.xso-menu-page,
.xso-cart-page {
    display: flex;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--xso-page);
    color: var(--xso-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.xso-flow-hero {
    height: 158px;
    flex: 0 0 158px;
    padding: calc(14px + env(safe-area-inset-top)) 22px 17px;
    background-color: var(--xso-yellow);
    background-image: url("../images/checkout-accent.png"), url("../images/checkout-sunburst.png");
    background-position: right 10px top 10px, center bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 116px 116px, cover;
}

.xso-flow-hero__top {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.xso-menu-hero .xso-flow-hero__top {
    grid-template-columns: minmax(0, 1fr) auto;
}

.xso-flow-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: -10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--xso-ink);
    cursor: pointer;
}

.xso-flow-back:hover {
    background: rgba(255, 255, 255, 0.34);
}

.xso-flow-back .mud-icon-root {
    font-size: 30px;
}

.xso-flow-site {
    min-width: 0;
    overflow: hidden;
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xso-flow-service {
    display: inline-flex;
    min-height: 40px;
    padding: 0 14px;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: #fff0b3;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.xso-flow-service .mud-icon-root {
    font-size: 22px;
}

.xso-flow-hero__copy {
    margin-top: 14px;
}

.xso-flow-hero__copy h1 {
    margin: 0;
    font-size: clamp(2.18rem, 9.5vw, 2.58rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.045em;
}

.xso-flow-hero__copy p {
    margin: 7px 0 0;
    font-size: 0.98rem;
    font-weight: 550;
    line-height: 1.25;
}

.xso-flow-back:focus-visible,
.xso-menu-category:focus-visible,
.xso-menu-product:focus-visible,
.xso-menu-cart__button:focus-visible,
.xso-menu-service-call:focus-visible,
.xso-flow-secondary-button:focus-visible,
.xso-cart-remove:focus-visible,
.xso-cart-checkout:focus-visible {
    outline: 3px solid #172032;
    outline-offset: 2px;
}

.xso-flow-state {
    display: flex;
    min-height: 220px;
    padding: 32px 24px;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.xso-flow-state > .mud-icon-root {
    color: #8a6a00;
    font-size: 40px;
}

.xso-flow-state--error > .mud-icon-root {
    color: var(--xso-red);
}

.xso-flow-state__icon {
    display: inline-flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--xso-yellow-soft);
    color: #8a6300;
}

.xso-flow-state__icon .mud-icon-root {
    font-size: 36px;
}

.xso-flow-secondary-button {
    min-height: 46px;
    margin-top: 5px;
    padding: 0 18px;
    border: 2px solid var(--xso-ink);
    border-radius: 12px;
    background: #ffffff;
    color: var(--xso-ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

/* Menu */

.xso-menu-categories {
    display: flex;
    min-height: 64px;
    padding: 10px 18px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    border-bottom: 1px solid #efe2b9;
    background: #fff8df;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.xso-menu-categories::-webkit-scrollbar {
    display: none;
}

.xso-menu-category {
    min-height: 42px;
    padding: 0 17px;
    flex: 0 0 auto;
    border: 1px solid #dbcfa8;
    border-radius: 999px;
    background: #ffffff;
    color: var(--xso-ink);
    font: inherit;
    font-size: 0.94rem;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
}

.xso-menu-category.is-active {
    border-color: var(--xso-red);
    background: var(--xso-red);
    color: #ffffff;
}

.xso-menu-content {
    width: min(100%, 720px);
    min-height: 0;
    margin: 0 auto;
    padding: 17px 20px 24px;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

.xso-menu-section-heading {
    display: flex;
    margin-bottom: 12px;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.xso-menu-section-heading h2 {
    min-width: 0;
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.xso-menu-section-heading span {
    flex: 0 0 auto;
    color: var(--xso-muted);
    font-size: 0.84rem;
}

.xso-menu-products {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.xso-menu-product {
    display: grid;
    width: 100%;
    min-height: 88px;
    padding: 11px;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #e5dfd5;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(41, 34, 24, 0.07);
    color: var(--xso-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 80ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.xso-menu-product:hover {
    border-color: #d4b23f;
    box-shadow: 0 5px 16px rgba(41, 34, 24, 0.1);
}

.xso-menu-product:active {
    transform: scale(0.985);
}

.xso-menu-product:disabled {
    opacity: 0.56;
    cursor: not-allowed;
}

.xso-menu-product__visual {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: var(--xso-yellow-soft);
    color: #8a6300;
}

.xso-menu-product__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xso-menu-product__visual .mud-icon-root {
    font-size: 30px;
}

.xso-menu-product__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.xso-menu-product__copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.22;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.xso-menu-product__copy > span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--xso-muted);
    font-size: 0.84rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.xso-menu-product__copy em {
    color: #9e0822;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.xso-menu-product__action {
    display: flex;
    min-width: 74px;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.xso-menu-product__action > strong {
    font-size: 1rem;
    font-weight: 900;
    white-space: nowrap;
}

.xso-menu-product__add {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--xso-red);
    color: #ffffff;
}

.xso-menu-product:disabled .xso-menu-product__add {
    background: #aca5a5;
}

.xso-menu-empty {
    display: flex;
    min-height: 180px;
    padding: 28px 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--xso-muted);
    text-align: center;
}

.xso-menu-empty .mud-icon-root {
    color: #c28b00;
    font-size: 38px;
}

.xso-menu-cart-warning {
    display: grid;
    margin-top: 16px;
    padding: 12px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    background: #ffedf0;
    color: #811126;
    font-size: 0.84rem;
}

.xso-menu-cart-warning button {
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: #ffffff;
    color: inherit;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.xso-menu-cart {
    display: grid;
    width: min(100%, 720px);
    min-height: 91px;
    margin: 0 auto;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(172px, auto);
    align-items: center;
    gap: 14px;
    border: 1px solid #e2ddd5;
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    background: #fffdfa;
    box-shadow: 0 -8px 28px rgba(41, 34, 24, 0.12);
}

.xso-menu-cart__summary {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.1;
}

.xso-menu-cart__summary span {
    color: var(--xso-muted);
    font-size: 0.8rem;
}

.xso-menu-cart__summary strong {
    margin-top: 3px;
    font-size: 1.42rem;
    font-weight: 950;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.xso-menu-cart__button,
.xso-cart-checkout {
    display: inline-flex;
    min-height: 54px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 12px;
    background: var(--xso-red);
    box-shadow: 0 5px 12px rgba(176, 7, 32, 0.2);
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
    font-weight: 850;
    cursor: pointer;
}

.xso-menu-cart__button:hover,
.xso-cart-checkout:hover {
    background: var(--xso-red-dark);
}

.xso-cart-checkout:disabled {
    background: #a89ea0;
    box-shadow: none;
    cursor: wait;
}

.xso-menu-service-call {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 25;
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--xso-yellow);
    box-shadow: 0 5px 18px rgba(41, 34, 24, 0.22);
    color: var(--xso-ink);
    cursor: pointer;
}

.xso-menu-service-call--with-cart {
    bottom: calc(110px + env(safe-area-inset-bottom));
}

/* Cart */

.xso-cart-hero {
    height: 150px;
    flex-basis: 150px;
}

.xso-cart-content {
    width: min(100%, 680px);
    min-height: 0;
    margin: 0 auto;
    padding: 18px 20px 22px;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

.xso-cart-list {
    display: grid;
    gap: 11px;
}

.xso-cart-line {
    display: grid;
    min-width: 0;
    padding: 14px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid #e5dfd5;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(41, 34, 24, 0.07);
}

.xso-cart-line__quantity {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--xso-yellow-soft);
    color: #5a4200;
    font-size: 1rem;
    font-weight: 900;
}

.xso-cart-line__body {
    min-width: 0;
}

.xso-cart-line__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.xso-cart-line__heading h2 {
    min-width: 0;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.xso-cart-line__heading > strong {
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 900;
    white-space: nowrap;
}

.xso-cart-line__body > p {
    margin: 5px 0 0;
    color: var(--xso-muted);
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.xso-cart-line__note {
    font-style: italic;
}

.xso-cart-line__meta {
    display: flex;
    margin-top: 9px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.xso-cart-line__meta > span {
    min-width: 0;
    color: var(--xso-muted);
    font-size: 0.79rem;
    overflow-wrap: anywhere;
}

.xso-cart-remove {
    display: inline-flex;
    min-width: 44px;
    min-height: 40px;
    padding: 0 9px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 10px;
    background: #ffedf0;
    color: #a10820;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.xso-cart-remove .mud-icon-root {
    font-size: 19px;
}

.xso-cart-remove:disabled {
    opacity: 0.6;
    cursor: wait;
}

.xso-cart-action {
    position: relative;
    z-index: 20;
    width: min(100%, 680px);
    margin: 0 auto;
    padding: 14px 20px calc(12px + env(safe-area-inset-bottom));
    flex: 0 0 auto;
    border: 1px solid #e2ddd5;
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    background: #fffdfa;
    box-shadow: 0 -8px 28px rgba(41, 34, 24, 0.12);
}

.xso-cart-total {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.xso-cart-total > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.05;
}

.xso-cart-total > div strong {
    font-size: 1.15rem;
    font-weight: 900;
}

.xso-cart-total > div span {
    margin-top: 3px;
    color: var(--xso-muted);
    font-size: 0.78rem;
}

.xso-cart-total > strong {
    flex: 0 0 auto;
    font-size: 1.65rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.xso-cart-checkout {
    width: 100%;
}

.xso-cart-empty > strong {
    font-size: 1.25rem;
    font-weight: 900;
}

.xso-cart-empty > span:not(.xso-flow-state__icon) {
    color: var(--xso-muted);
}

/* Dialog + legal footer */

.xso-product-dialog {
    overflow: hidden;
    border-radius: 24px !important;
    background: var(--xso-page);
}

.xso-product-dialog .mud-dialog-title {
    padding: 20px 22px 15px;
    background: var(--xso-yellow);
    color: var(--xso-ink);
    font-size: 1.25rem;
    font-weight: 900;
}

.xso-product-dialog .mud-dialog-content {
    padding: 18px 22px;
    background: var(--xso-page);
}

.xso-product-dialog .mud-dialog-actions {
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--xso-line);
    background: #ffffff;
}

.xso-dialog-add.mud-button-root {
    min-width: 0;
    min-height: 48px;
    padding-right: 12px;
    padding-left: 12px;
    flex: 1 1 auto;
    border-radius: 12px;
    background: var(--xso-red);
    color: #ffffff;
    font-weight: 850;
    text-transform: none;
}

.xso-dialog-add.mud-button-root .mud-button-label {
    justify-content: center;
    white-space: nowrap;
}

.xso-dialog-add.mud-button-root:hover {
    background: var(--xso-red-dark);
}

.xso-dialog-cancel.mud-button-root {
    min-height: 44px;
    padding-right: 6px;
    padding-left: 6px;
    flex: 0 0 auto;
    color: var(--xso-ink);
    font-weight: 750;
    text-transform: none;
}

.xso-dialog-quantity.mud-icon-button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--xso-yellow-soft);
    color: var(--xso-ink);
}

.xso-product-dialog-backdrop {
    background: rgba(23, 23, 23, 0.54) !important;
}

.xso-guest-footer {
    display: flex;
    margin-top: 28px;
    padding: 16px 8px 6px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--xso-muted, #6c6c6c);
}

.xso-guest-footer a {
    color: inherit;
}

@media (max-width: 359px) {
    .xso-flow-hero,
    .xso-menu-content,
    .xso-cart-content,
    .xso-menu-cart,
    .xso-cart-action {
        padding-right: 16px;
        padding-left: 16px;
    }

    .xso-menu-categories {
        padding-right: 14px;
        padding-left: 14px;
    }

    .xso-flow-hero__copy h1 {
        font-size: 2.05rem;
    }

    .xso-menu-product {
        grid-template-columns: 54px minmax(0, 1fr) auto;
        gap: 9px;
    }

    .xso-menu-product__visual {
        width: 54px;
        height: 54px;
    }

    .xso-menu-product__action {
        min-width: 66px;
    }

    .xso-menu-cart {
        grid-template-columns: minmax(0, 1fr) minmax(158px, auto);
    }

    .xso-cart-line {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 12px;
        gap: 9px;
    }

    .xso-cart-line__quantity {
        width: 42px;
        height: 42px;
    }

    .xso-cart-remove > span {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

@media (max-height: 680px) and (max-width: 719px) {
    .xso-flow-hero {
        height: 132px;
        flex-basis: 132px;
    }

    .xso-flow-hero__copy {
        margin-top: 7px;
    }

    .xso-flow-hero__copy p {
        display: none;
    }

    .xso-menu-categories {
        min-height: 56px;
        padding-top: 7px;
        padding-bottom: 7px;
    }
}

@media (min-width: 720px) {
    .xso-flow-hero {
        height: 174px;
        flex-basis: 174px;
        padding-right: max(24px, calc((100% - 680px) / 2));
        padding-left: max(24px, calc((100% - 680px) / 2));
        background-position: calc(50% + 230px) 10px, center bottom;
    }

    .xso-menu-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xso-menu-cart,
    .xso-cart-action {
        border-bottom: 1px solid #e2ddd5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xso-menu-product {
        transition: none;
    }
}
