html,
body {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

#app {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* The application provides its own consistent password visibility control. */
.fo-password-input::-ms-reveal,
.fo-password-input::-ms-clear {
    display: none;
}

/* Keep tour tabs swipeable without showing a desktop scrollbar in the WebView. */
.fahrdienst-tabs {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fahrdienst-tabs::-webkit-scrollbar {
    display: none;
}

.fo-catalog-tree {
    min-width: 0;
    overflow: hidden;
    border: 1px solid hsl(var(--border) / 0.8);
}

.fo-catalog-tree-toolbar,
.fo-catalog-tree-heading,
.fo-catalog-tree-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.fo-catalog-tree-toolbar {
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem 1.25rem;
}

.fo-catalog-tree-heading h2 {
    overflow-wrap: anywhere;
    font-size: 1.125rem;
    font-weight: 600;
}

.fo-catalog-tree-tools {
    flex: 1;
    justify-content: flex-end;
}

.fo-catalog-tree-search {
    position: relative;
    flex: 0 1 24rem;
    min-width: 10rem;
}

.fo-catalog-tree-search > i {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.fo-catalog-tree-search-input {
    width: 100%;
    min-width: 0;
    height: 2.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--background));
    padding: 0.5rem 2.5rem;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
}

.fo-catalog-tree-search-input::-webkit-search-cancel-button {
    display: none;
}

.fo-catalog-tree-clear {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 0.5rem;
    color: hsl(var(--muted-foreground));
}

.fo-catalog-tree-collapse,
.fo-catalog-tree-articles {
    flex-shrink: 0;
    color: hsl(var(--primary));
    font-size: 0.875rem;
    white-space: nowrap;
}

.dark .fo-catalog-tree-collapse,
.dark .fo-catalog-tree-articles {
    color: hsl(var(--secondary));
}

.fo-catalog-tree-collapse {
    min-height: 2.5rem;
}

.fo-catalog-tree-collapse:disabled {
    cursor: default;
    opacity: 0.45;
}

.fo-catalog-tree-collapse:hover:not(:disabled),
.fo-catalog-tree-articles:hover {
    text-decoration: underline;
}

.fo-catalog-tree-scroll {
    max-height: min(36rem, 65vh);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    padding: 0.25rem 0.75rem;
}

.fo-catalog-tree-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fo-catalog-tree-row {
    position: relative;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    border-bottom: 1px solid hsl(var(--border) / 0.65);
    padding: 0.125rem 0.5rem 0.125rem calc(0.25rem + var(--fo-category-depth) * 1.25rem);
    border-radius: 0.375rem;
}

.fo-catalog-tree-row:last-child {
    border-bottom-color: transparent;
}

.fo-catalog-tree-row:not([data-depth="0"])::before,
.fo-catalog-tree-row:not([data-depth="0"])::after {
    position: absolute;
    left: calc(var(--fo-category-depth) * 1.25rem);
    pointer-events: none;
    content: "";
}

.fo-catalog-tree-row:not([data-depth="0"])::before {
    top: 0;
    bottom: 0;
    border-left: 1px solid hsl(var(--border));
}

.fo-catalog-tree-row:not([data-depth="0"])::after {
    top: 50%;
    width: 0.625rem;
    border-top: 1px solid hsl(var(--border));
}

.fo-catalog-tree-expanded {
    background: hsl(var(--secondary) / 0.08);
}

.fo-catalog-tree-row:hover {
    background: hsl(var(--muted) / 0.65);
}

.fo-catalog-tree-selected {
    background: hsl(var(--secondary) / 0.18);
}

.fo-catalog-tree-toggle,
.fo-catalog-tree-toggle-placeholder {
    display: grid;
    width: 2rem;
    min-height: 2.5rem;
    place-items: center;
    border-radius: 0.375rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
}

.fo-catalog-tree-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 2.5rem;
    padding: 0.375rem 0;
    text-align: left;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    line-height: 1.4;
}

.fo-catalog-tree-name > i {
    flex-shrink: 0;
    width: 1rem;
    color: hsl(var(--muted-foreground));
}

.fo-catalog-tree-name > span {
    overflow-wrap: anywhere;
}

.fo-catalog-tree-row[data-depth="0"] .fo-catalog-tree-name,
.fo-catalog-tree-selected .fo-catalog-tree-name {
    font-weight: 600;
}

.fo-catalog-tree-count {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    white-space: nowrap;
}

.fo-catalog-tree-articles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 2.5rem;
    margin-left: 1rem;
    padding: 0.375rem;
}

.fo-catalog-tree button:focus-visible,
.fo-catalog-tree input:focus-visible,
.fo-catalog-tree-scroll:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.fo-catalog-tree-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.fo-catalog-tree-skeleton-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 2.75rem;
    border-bottom: 1px solid hsl(var(--border) / 0.65);
}

@media (max-width: 639px) {
    .fo-catalog-tree-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .fo-catalog-tree-tools {
        gap: 0.5rem;
    }

    .fo-catalog-tree-search {
        flex: 1;
        min-width: 0;
    }

    .fo-catalog-tree-scroll {
        padding-right: 0.25rem;
        padding-left: 0.25rem;
    }

    .fo-catalog-tree-row {
        grid-template-columns: 2rem minmax(0, 1fr) 2.5rem;
        gap: 0.25rem;
        min-height: 3rem;
        padding-left: calc(var(--fo-category-depth) * 0.75rem);
    }

    .fo-catalog-tree-row:not([data-depth="0"])::before,
    .fo-catalog-tree-row:not([data-depth="0"])::after {
        left: calc(0.25rem + var(--fo-category-depth) * 0.75rem);
    }

    .fo-catalog-tree-row:not([data-depth="0"])::after {
        width: 0.25rem;
    }

    .fo-catalog-tree-name {
        gap: 0.5rem;
    }

    .fo-catalog-tree-count,
    .fo-catalog-tree-articles > span {
        display: none;
    }

    .fo-catalog-tree-articles {
        width: 2.5rem;
        min-height: 2.75rem;
        margin-left: 0;
    }

    .fo-catalog-tree-toggle,
    .fo-catalog-tree-name {
        min-height: 2.75rem;
    }
}

.fo-order-groups {
    display: grid;
    gap: 2rem;
    min-width: 0;
}

.fo-order-group {
    min-width: 0;
    border-left: 3px solid hsl(var(--primary));
    padding-left: 0.75rem;
}

.fo-order-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    background: hsl(var(--primary) / 0.06);
    padding: 0.75rem;
    color: hsl(var(--foreground));
}

.fo-order-group-title {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.fo-order-group-count {
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Only the customer-list drag handle captures touch; fields and page scrolling stay native. */
.fo-list-drag-handle {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    color: hsl(var(--muted-foreground));
    cursor: grab;
    touch-action: none;
}

.fo-list-drag-handle:hover:not(:disabled) {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.fo-list-drag-handle:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.fo-list-drag-handle:disabled {
    opacity: 0.4;
    cursor: default;
}

.fo-list-sorting {
    user-select: none;
}

.fo-list-sorting .fo-list-drag-handle {
    cursor: grabbing;
}

.fo-list-dragging {
    opacity: 0.45;
}

.fo-list-drop-before,
tr.fo-list-drop-before > td {
    box-shadow: inset 0 3px hsl(var(--primary));
}

.fo-list-drop-after,
tr.fo-list-drop-after > td {
    box-shadow: inset 0 -3px hsl(var(--primary));
}

.fo-list-drag-ghost {
    position: fixed;
    z-index: 150;
    max-width: calc(100vw - 1rem);
    overflow: hidden;
    border: 1px solid hsl(var(--primary));
    border-radius: 0.5rem;
    background: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
}

/* Shared navigation for customer and MMC areas in Web and MAUI. */
.fo-shell {
    --fo-surface: color-mix(in srgb, hsl(var(--background)), white 65%);
    --fo-soft-border: hsl(var(--border) / 0.6);
    --fo-panel-shadow: 0 3px 12px hsl(var(--primary) / 0.045);
}

.dark .fo-shell {
    --fo-surface: hsl(var(--background));
}

.fo-shell .fo-shell-sidebar {
    border-right: 1px solid var(--fo-soft-border);
    background: linear-gradient(160deg, var(--fo-surface), hsl(var(--background)));
}

.fo-shell .fo-shell-brand {
    min-height: 4.375rem;
    padding: 1rem 1.125rem;
}

.fo-shell .fo-shell-brand > div > img {
    max-width: 10.5rem;
}

.fo-shell .fo-shell-navigation {
    padding: 0 0.875rem 1rem;
}

.fo-shell .fo-shell-navigation a {
    height: 2.75rem;
    gap: 1rem;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    color: hsl(var(--foreground) / 0.75);
}

.fo-shell .fo-shell-navigation a > i {
    width: 1.375rem;
    font-size: 1.0625rem;
    text-align: center;
}

.fo-shell .fo-shell-navigation a[aria-current="page"] {
    background: linear-gradient(110deg, hsl(var(--primary) / 0.9), hsl(var(--primary)));
    color: hsl(var(--primary-foreground));
    font-weight: 600;
    box-shadow: 0 2px 4px hsl(var(--primary) / 0.1);
}

.fo-shell .fo-shell-navigation > div + div {
    margin-top: 1.25rem;
}

.fo-shell .fo-shell-footer {
    padding: 1rem;
    background: transparent;
}

.fo-customer-shell .fo-shell-header {
    height: 4.625rem;
    border-bottom: 1px solid var(--fo-soft-border);
    background: hsl(var(--background) / 0.95);
    box-shadow: var(--fo-panel-shadow);
}

.fo-customer-shell .fo-shell-header-inner {
    height: 100%;
    padding: 0 1.25rem;
}

.fo-customer-shell .fo-shell-toolbar {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.fo-customer-shell .fo-shell-toolbar-content {
    gap: 1rem;
    padding: 0;
}

.fo-customer-shell .fo-shell-search-input {
    height: 2.875rem;
    border: 1px solid var(--fo-soft-border);
    border-radius: 0.625rem;
    background: var(--fo-surface);
    font-size: 0.875rem;
    box-shadow: var(--fo-panel-shadow);
}

.fo-customer-shell .fo-shell-action {
    width: 3.5rem;
    height: 3rem;
    border: 1px solid var(--fo-soft-border);
    border-radius: 0.625rem;
    background: var(--fo-surface);
    box-shadow: var(--fo-panel-shadow);
}

.fo-customer-shell .fo-shell-action:hover,
.fo-customer-shell .fo-shell-action[aria-current="page"] {
    border-color: hsl(var(--primary) / 0.3);
    background: hsl(var(--primary) / 0.06);
}

/* Article rows: keep intrinsic image dimensions from enlarging the row. */
.fo-article-row-image {
    height: 8rem;
}

.fo-article-row-image > img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fo-news-content img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 32rem;
    object-fit: contain;
}

.fo-customer-shell .fo-shell-action:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.fo-customer-shell .fo-shell-action > span:not(.sr-only) {
    top: -0.125rem;
    right: -0.125rem;
    background: #009e7a;
    color: white;
    border: 2px solid var(--fo-surface);
}

.fo-customer-shell .fo-shell-main {
    padding: 1.125rem 1.25rem 1.75rem;
}

.fo-customer-shell .fo-shell-content > [role="status"] {
    top: 4.625rem;
}

/* Start page: keep horizontal scrolling inside the article carousel. */
.fo-home {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    width: 100%;
    min-width: 0;
}

.fo-home-greeting {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-wrap: anywhere;
}

.fo-home-welcome {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    min-height: 8rem;
    overflow: hidden;
    border: 1px solid var(--fo-soft-border);
    border-radius: 0.875rem;
    background: linear-gradient(110deg, var(--fo-surface) 35%, hsl(var(--primary) / 0.065));
    padding: 1.25rem 1.625rem;
    box-shadow: var(--fo-panel-shadow);
}

.fo-home-welcome-artwork {
    position: absolute;
    display: flex;
    inset: 0 24% 0 auto;
    width: 23rem;
    max-width: 60%;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    pointer-events: none;
}

.fo-home-welcome-copy {
    position: relative;
    display: flex;
    flex: 1 1 30rem;
    align-items: flex-start;
    gap: 1.5rem;
    min-width: 0;
}

.fo-home-welcome-icon {
    flex-shrink: 0;
    margin-top: 0.5rem;
    color: #f5ae42;
    font-size: 2rem;
}

.fo-home-welcome-package {
    color: hsl(var(--primary) / 0.1);
    font-size: 3.5rem;
}

.fo-home-welcome-medical {
    color: hsl(var(--primary) / 0.14);
    font-size: 2.5rem;
}

.fo-home-welcome-cart {
    color: hsl(var(--primary) / 0.2);
    font-size: 4.5rem;
}

.fo-home-welcome-plus {
    position: absolute;
    color: hsl(var(--primary) / 0.08);
    font-size: 1.5rem;
}

.fo-home-welcome-plus-left {
    top: 1rem;
    left: 1.5rem;
}

.fo-home-welcome-plus-right {
    right: 1rem;
    bottom: 1.5rem;
}

.fo-home-greeting-label {
    font-size: 0.9375rem;
    font-weight: 500;
}
.fo-home-greeting-name {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.035em;
}
.fo-home-welcome-description {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.fo-home-customer {
    position: relative;
    display: flex;
    flex: 0 1 18.5rem;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    border: 1px solid var(--fo-soft-border);
    border-radius: 0.75rem;
    background: var(--fo-surface);
    padding: 0.8125rem 1rem;
}

.fo-home-customer-icon,
.fo-home-list-icon {
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: hsl(var(--primary) / 0.065);
    color: hsl(var(--primary));
    font-size: 1.5rem;
}

.fo-home-customer-name {
    font-size: 0.875rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.fo-home-customer-number {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    overflow-wrap: anywhere;
}

.fo-home-section {
    min-width: 0;
    border-color: var(--fo-soft-border);
    border-radius: 0.875rem;
    background: var(--fo-surface);
    box-shadow: var(--fo-panel-shadow);
}

.fo-home-section > div:first-child {
    padding: 1.25rem 1.5rem 1rem;
}

.fo-home-section > div:last-child {
    padding: 0 1rem 1.125rem;
}

.fo-home-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.fo-home-section-icon {
    width: 2rem;
    flex-shrink: 0;
    color: hsl(var(--primary));
    font-size: 1.75rem;
    text-align: center;
}

.fo-home-section-heading {
    flex: 1 1 12rem;
    min-width: 0;
}

.fo-home-section-heading h3 {
    line-height: 1.4;
    text-wrap: balance;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.fo-home-section-action {
    flex-shrink: 0;
    max-width: 100%;
    margin-left: auto;
    white-space: nowrap;
    color: hsl(var(--primary));
}

.fo-home-carousel-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.fo-home-carousel-button {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fo-soft-border);
    border-radius: 0.5rem;
    background: var(--fo-surface);
    color: hsl(var(--primary));
    cursor: pointer;
}

.fo-home-carousel-button:hover:not(:disabled) {
    background: hsl(var(--muted));
}

.fo-home-carousel-button:disabled {
    opacity: 0.35;
    cursor: default;
}

.fo-home-carousel:focus-visible,
.fo-home-carousel-button:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.fo-home-carousel {
    display: flex;
    gap: 0.625rem;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0.125rem 0.125rem 0.25rem;
}

.fo-home-carousel::-webkit-scrollbar {
    display: none;
}

.fo-home-article {
    flex: 0 0 min(16.25rem, 100%);
    min-width: 0;
    min-height: 13.75rem;
    border-color: var(--fo-soft-border);
    background: linear-gradient(140deg, var(--fo-surface), hsl(var(--background)));
    scroll-snap-align: start;
    box-shadow: 0 2px 5px hsl(var(--primary) / 0.04);
}

.fo-home-article-summary {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
}

.fo-home-article-image {
    display: flex;
    width: 5.5rem;
    height: 6.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: hsl(var(--muted) / 0.5);
}

.fo-home-article-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.fo-home-quantity {
    display: grid;
    flex: 1;
    min-width: 0;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    border-color: var(--fo-soft-border);
}

.fo-home-quantity > * {
    height: 2.625rem;
}

.fo-home-article-actions > button {
    width: 3.25rem;
    height: 2.625rem;
    flex-shrink: 0;
    border-radius: 0.375rem;
}

.fo-home-quantity > button:focus-visible,
.fo-home-article-actions > button:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: -3px;
}

.fo-home-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
    gap: 1rem;
}

.fo-home-list {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--fo-soft-border);
    border-left: 5px solid hsl(var(--primary));
    border-radius: 0.5rem;
    background: linear-gradient(140deg, var(--fo-surface), hsl(var(--background)));
    padding: 0.875rem 0.875rem 0.875rem 1rem;
    box-shadow: 0 2px 5px hsl(var(--primary) / 0.04);
}

.fo-home-list:hover {
    border-color: hsl(var(--primary) / 0.4);
}
.fo-home-list:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}
.fo-home-list-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.fo-home-list-title {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.fo-home-list-preview {
    flex: 1;
    margin: 0.75rem 0;
}
.fo-home-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    color: hsl(var(--foreground) / 0.85);
}
.fo-home-list-row + .fo-home-list-row {
    border-top: 1px solid var(--fo-soft-border);
}
.fo-home-list-open {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-radius: 0.5rem;
    background: hsl(var(--primary) / 0.035);
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--primary));
}
.fo-home-list:hover .fo-home-list-open {
    background: hsl(var(--primary) / 0.09);
}

@media (min-width: 768px) {
    .fo-shell .fo-shell-sidebar-collapsed .fo-shell-brand {
    padding: 0.5rem;
}
    .fo-shell .fo-shell-sidebar-collapsed .fo-shell-navigation {
    padding: 0 0.375rem 1rem;
}
    .fo-shell .fo-shell-sidebar-collapsed .fo-shell-navigation a {
    justify-content: center;
    gap: 0;
    padding: 0.625rem;
}
    .fo-shell .fo-shell-sidebar-collapsed .fo-shell-footer {
    padding: 0.75rem 0.375rem;
}
}

@media (min-width: 1600px) {
    .fo-home-article {
    flex-basis: calc((100% - 2.5rem) / 5);
}
}

@media (max-width: 767px) {
    .fo-customer-shell .fo-shell-header {
    height: 6.75rem;
}
    .fo-customer-shell .fo-shell-header-inner {
    padding: 0 0.75rem;
}
    .fo-customer-shell .fo-shell-toolbar-content {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    grid-template-rows: 2.75rem 2.5rem;
    gap: 0.5rem;
    padding: 0.5rem 0;
}
    .fo-customer-shell .fo-shell-menu-trigger {
    grid-column: 1;
    grid-row: 1;
}
    .fo-customer-shell .fo-shell-customer {
    grid-column: 2;
    grid-row: 1;
    max-width: 100%;
    justify-self: start;
}
    .fo-customer-shell .fo-shell-actions {
    grid-column: 3;
    grid-row: 1;
}
    .fo-customer-shell .fo-shell-search {
    grid-column: 1 / -1;
    grid-row: 2;
}
    .fo-customer-shell .fo-shell-search-input {
    height: 2.5rem;
}
    .fo-customer-shell .fo-shell-action {
    width: 2.75rem;
    height: 2.75rem;
}
    .fo-customer-shell .fo-shell-main {
    padding: 0.875rem 0.75rem 1.25rem;
}
    .fo-customer-shell .fo-shell-content > [role="status"] {
    top: 6.75rem;
}
    .fo-home-welcome {
    padding: 1.25rem;
}
    .fo-home-welcome-copy {
    gap: 1rem;
}
    .fo-home-welcome-artwork {
        display: none;
    }
    .fo-home-customer {
    flex-basis: 100%;
}
    .fo-home-section > div:first-child {
    padding: 1rem;
}
}

@media (max-width: 639px) {
    .fo-home-article-summary {
        flex-direction: column;
    }

    .fo-home-article-image {
        width: 100%;
        height: 8rem;
    }

    .fo-home-section-heading {
        flex-basis: calc(100% - 3.5rem);
    }

    .fo-home-quantity {
        grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
    }

    .fo-home-article-actions > button {
        width: 3rem;
    }
}

/* Full-width list controls on small displays, matching the cart quantity input. */
@media (max-width: 767px) {
    .fo-list-order-actions {
        width: 100%;
    }

    .fo-list-add-button {
        width: 100%;
        height: 2.75rem;
    }
}

/* Order completion: shared by Web and MAUI; the server response drives each phase. */
.fo-order-motion {
    --fo-wash: hsl(var(--muted) / .6);
    --fo-mint: #158878;
    --fo-mint-wash: hsl(var(--secondary) / .15);
    --fo-orange: #a35d16;
    --fo-orange-wash: #fff3e4;
    --fo-van: #ffffff;
    --fo-van-edge: #cad4de;
    --fo-paint: #142f56;
    --fo-glass: #a7cbe6;
    --fo-tire: #233042;
    --fo-road: hsl(var(--border));
}
.fo-order-completion { max-width: 464px; color: hsl(var(--foreground)); }
.dark .fo-order-motion { --fo-mint: #79d8bd; }
.fo-order-motion .fo-scene { position: relative; height: 192px; margin: 14px -6px 12px; overflow: hidden; isolation: isolate; }
.fo-order-motion .fo-halo { position: absolute; width: 244px; height: 144px; border-radius: 50%; left: 50%; top: 18px; transform: translateX(-50%); background: var(--fo-wash); transition: background .35s; }
.fo-order-motion .fo-road { position: absolute; bottom: 22px; left: 15px; right: 15px; height: 3px; border-radius: 4px; background: var(--fo-road); }
.fo-order-motion .fo-road::after { content: ""; position: absolute; top: 11px; height: 2px; width: 200%; left: 0; background: repeating-linear-gradient(90deg, var(--fo-road) 0 18px, transparent 18px 43px); }
.fo-order-motion .fo-vehicle { position: absolute; width: 270px; height: 143px; left: 50%; bottom: 24px; margin-left: -126px; transform-origin: 50% 100%; transition: transform .65s cubic-bezier(.55,.02,.85,.55), opacity .55s; }
.fo-order-motion .fo-van-shadow { position: absolute; width: 255px; height: 13px; border-radius: 50%; bottom: -5px; left: 8px; background: #15283d14; filter: blur(3px); }
.fo-order-motion .fo-cargo { position: absolute; left: 10px; top: 16px; width: 159px; height: 106px; background: var(--fo-van); border: 1px solid var(--fo-van-edge); border-radius: 15px 17px 4px 8px; }
.fo-order-motion .fo-cab { position: absolute; left: 164px; top: 36px; width: 99px; height: 86px; background: var(--fo-van); clip-path: polygon(0 0, 37% 0, 62% 13%, 83% 54%, 100% 63%, 100% 100%, 0 100%); border-bottom: 1px solid var(--fo-van-edge); }
.fo-order-motion .fo-roof-line { position: absolute; left: 173px; top: 35px; width: 28px; height: 2px; border-radius: 3px; background: var(--fo-van-edge); }
.fo-order-motion .fo-cab-glass { position: absolute; left: 176px; top: 45px; width: 58px; height: 42px; background: linear-gradient(135deg, var(--fo-glass) 0 45%, #d7ecfa 45% 65%, var(--fo-glass) 65%); clip-path: polygon(0 0, 42% 0, 65% 14%, 100% 92%, 0 73%); border-radius: 4px 8px 1px 3px; }
.fo-order-motion .fo-side-glass { position: absolute; left: 110px; top: 32px; width: 47px; height: 43px; border: 2px solid #e9eef3; border-radius: 8px; background: linear-gradient(135deg, var(--fo-glass) 0 35%, #d7ecfa 35% 58%, var(--fo-glass) 58%); }
.fo-order-motion .fo-stripe { position: absolute; top: 88px; left: 10px; width: 253px; height: 13px; background: var(--fo-paint); clip-path: polygon(0 0, 63% 0, 100% 45%, 100% 100%, 0 100%); }
.fo-order-motion .fo-wordmark { position: absolute; top: 87px; left: 27px; color: #ffffff; font-size: 10px; letter-spacing: -.35px; line-height: 15px; font-weight: 400; }
.fo-order-motion .fo-wordmark b { font-weight: 650; }
.fo-order-motion .fo-door { position: absolute; top: 32px; left: 108px; width: 54px; height: 83px; border-left: 1px solid #dce3e9; border-right: 1px solid #dce3e9; border-radius: 8px; }
.fo-order-motion .fo-handle { position: absolute; top: 82px; left: 141px; width: 12px; height: 3px; background: var(--fo-tire); border-radius: 3px; }
.fo-order-motion .fo-mirror { position: absolute; top: 72px; right: 22px; width: 11px; height: 7px; background: var(--fo-paint); border-radius: 4px; }
.fo-order-motion .fo-light { position: absolute; top: 100px; right: 8px; width: 10px; height: 9px; background: #d9eef6; border-radius: 2px; }
.fo-order-motion .fo-bumper { position: absolute; bottom: 15px; left: 9px; width: 255px; height: 12px; background: #8b98a6; border-radius: 0 0 8px 8px; }
.fo-order-motion .fo-wheel { position: absolute; width: 39px; height: 39px; border: 7px solid var(--fo-tire); background: #dce1e7; border-radius: 50%; bottom: -1px; z-index: 3; box-shadow: 0 0 0 3px var(--fo-van); }
.fo-order-motion .fo-wheel::after { content: ""; position: absolute; inset: 4px; border: 2px dashed #9aa6b4; border-radius: 50%; background: linear-gradient(0deg, transparent 42%, #8997a6 42% 58%, transparent 58%); }
.fo-order-motion .fo-wheel-back { left: 37px; }
.fo-order-motion .fo-wheel-front { right: 19px; }
.fo-order-motion .fo-medical { position: absolute; left: 37px; top: 35px; width: 38px; height: 38px; border-radius: 50%; background: var(--fo-paint); }
.fo-order-motion .fo-medical::before, .fo-order-motion .fo-medical::after { content: ""; position: absolute; background: #ffffff; inset: 8px 16px; border-radius: 1px; }
.fo-order-motion .fo-medical::after { inset: 16px 8px; }
.fo-order-motion .fo-speed { position: absolute; left: 13px; top: 74px; width: 48px; height: 3px; background: var(--fo-glass); border-radius: 9px; opacity: 0; }
.fo-order-motion .fo-speed-two { top: 95px; width: 31px; left: 4px; }
.fo-order-motion .fo-speed-three { top: 125px; width: 41px; left: 18px; }
.fo-order-motion .fo-seal { position: absolute; display: grid; place-items: center; width: 86px; height: 86px; left: calc(50% - 43px); top: 48px; color: var(--fo-mint); background: var(--fo-mint-wash); border: 1px solid color-mix(in srgb, var(--fo-mint) 20%, transparent); border-radius: 50%; opacity: 0; transform: scale(.65); transition: opacity .3s .2s, transform .5s .2s cubic-bezier(.15,.8,.25,1.25); }
.fo-order-motion[data-phase="busy"] .fo-vehicle { animation: fo-drive-in .55s ease-out both, fo-ride 1.1s .55s ease-in-out infinite; }
.fo-order-motion[data-phase="busy"] .fo-wheel { animation: fo-wheel-turn .65s linear infinite; }
.fo-order-motion[data-phase="busy"] .fo-road::after { animation: fo-road-pass .72s linear infinite; }
.fo-order-motion[data-phase="busy"] .fo-speed { animation: fo-speed-pass .9s ease-out infinite; }
.fo-order-motion[data-phase="busy"] .fo-speed-two { animation-delay: -.5s; }
.fo-order-motion[data-phase="busy"] .fo-speed-three { animation-delay: -.2s; }
.fo-order-motion[data-phase="success"] .fo-vehicle { animation: fo-drive-out .65s ease-in forwards; }
.fo-order-motion[data-phase="success"] .fo-wheel { animation: fo-wheel-turn .65s linear; }
.fo-order-motion[data-phase="success"] .fo-road { opacity: 0; transition: opacity .3s .3s; }
.fo-order-motion[data-phase="error"] .fo-seal { opacity: 1; transform: scale(1); }
.fo-order-motion[data-phase="error"] .fo-seal { color: var(--fo-orange); background: var(--fo-orange-wash); border-color: transparent; }
.fo-order-motion[data-phase="error"] .fo-vehicle { opacity: .08; }
@keyframes fo-drive-in { from { transform: translateX(-350px); } to { transform: translateX(0); } }
@keyframes fo-ride { 0%, 100% { transform: translateX(0) translateY(0); } 35% { transform: translateX(10px) translateY(-2px) rotate(-.5deg); } 70% { transform: translateX(-6px) translateY(1px) rotate(.3deg); } }
@keyframes fo-drive-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(420px); opacity: 0; } }
@keyframes fo-roll-gently { from { transform: translateX(-24px); } to { transform: translateX(0); } }
@keyframes fo-wheel-turn { to { transform: rotate(360deg); } }
@keyframes fo-road-pass { to { transform: translateX(-43px); } }
@keyframes fo-speed-pass { 0% { opacity: 0; transform: translateX(20px); } 25% { opacity: .6; } 100% { opacity: 0; transform: translateX(-16px); } }
.fo-order-motion .fo-seal { transition-delay: .45s; font-size: 34px; }
.fo-order-motion[data-phase="error"] .fo-seal { transition-delay: 0s; }
.fo-login-image-canvas {
    position: absolute; inset: 0;
    --fo-login-fit: var(--fo-login-desktop-fit, cover);
    --fo-login-width: var(--fo-login-desktop-width, 100%);
    --fo-login-height: var(--fo-login-desktop-height, 100%);
    --fo-login-x: var(--fo-login-desktop-x, 50%);
    --fo-login-y: var(--fo-login-desktop-y, 50%);
    --fo-login-transform: var(--fo-login-desktop-transform, translate(-50%, -50%));
}
.fo-login-image-canvas--mobile {
    --fo-login-fit: var(--fo-login-mobile-fit);
    --fo-login-width: var(--fo-login-mobile-width);
    --fo-login-height: var(--fo-login-mobile-height);
    --fo-login-x: var(--fo-login-mobile-x);
    --fo-login-y: var(--fo-login-mobile-y);
    --fo-login-transform: var(--fo-login-mobile-transform);
}
/* Keep the complete image above the overlapping form in the mobile login. */
.fo-login-image-canvas--mobile[data-fit-mobile="contain"] { bottom: 32px; }
.fo-login-overlay--desktop { display: none; }
@media (max-width: 767px) {
    .fo-login-image-canvas--responsive {
        --fo-login-fit: var(--fo-login-mobile-fit);
        --fo-login-width: var(--fo-login-mobile-width);
        --fo-login-height: var(--fo-login-mobile-height);
        --fo-login-x: var(--fo-login-mobile-x);
        --fo-login-y: var(--fo-login-mobile-y);
        --fo-login-transform: var(--fo-login-mobile-transform);
    }
    .fo-login-image-canvas--responsive[data-fit-mobile="contain"] { bottom: 32px; }
}
@media (min-width: 640px) and (max-width: 767px) {
    .fo-login-image-canvas--responsive[data-fit-mobile="contain"] { bottom: 40px; }
}
@media (min-width: 768px) {
    .fo-login-overlay--desktop { display: block; }
    .fo-login-overlay--mobile { display: none; }
}
.fo-login-image { position: absolute; width: var(--fo-login-width); height: var(--fo-login-height); left: var(--fo-login-x); top: var(--fo-login-y); max-width: none; object-fit: var(--fo-login-fit); transform: var(--fo-login-transform); transform-origin: center; }
.fo-login-reveal { animation: fo-login-reveal 180ms ease-out both; }
@keyframes fo-login-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .fo-login-reveal { animation: none; }
}
.fo-login-preview-scroll { container-type: inline-size; width: 100%; max-width: 680px; min-width: 0; padding: 1px; }
.fo-login-preview { --fo-preview-unit: min(1px, calc(100cqw / 680)); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); width: 680px; min-height: calc(420 * var(--fo-preview-unit)); max-width: 100%; overflow: hidden; border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--background)); color: hsl(var(--foreground)); }
.fo-login-preview__visual { position: relative; overflow: hidden; background: hsl(var(--muted)); }
.fo-login-preview__gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, hsl(var(--foreground) / .1), hsl(var(--foreground) / .7)); }
.fo-login-preview__logo { position: absolute; top: calc(15 * var(--fo-preview-unit)); left: calc(15 * var(--fo-preview-unit)); width: calc(80 * var(--fo-preview-unit)); height: auto; }
.fo-login-preview__form { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: calc(10 * var(--fo-preview-unit)); padding: calc(40 * var(--fo-preview-unit)); }
.fo-login-preview__eyebrow { color: hsl(var(--secondary)); font-size: calc(9 * var(--fo-preview-unit)); font-weight: 800; text-transform: uppercase; }
.fo-login-preview__title { font-size: calc(24 * var(--fo-preview-unit)); font-weight: 800; line-height: 1.2; }
.fo-login-preview__description { color: hsl(var(--muted-foreground)); font-size: calc(10 * var(--fo-preview-unit)); }
.fo-login-preview__saved { display: flex; align-items: center; gap: calc(5 * var(--fo-preview-unit)); min-height: calc(25 * var(--fo-preview-unit)); padding: 0 calc(10 * var(--fo-preview-unit)); border: 1px solid hsl(var(--border)); border-radius: 5px; font-size: calc(9 * var(--fo-preview-unit)); }
.fo-login-preview__saved > i:last-child { margin-left: auto; }
.fo-login-preview__back { text-align: center; color: hsl(var(--muted-foreground)); font-size: calc(9 * var(--fo-preview-unit)); font-weight: 600; }
.fo-login-preview__field { display: grid; gap: calc(5 * var(--fo-preview-unit)); font-size: calc(10 * var(--fo-preview-unit)); font-weight: 700; }
.fo-login-preview__field > div { height: calc(32 * var(--fo-preview-unit)); border: 1px solid hsl(var(--border)); border-radius: 5px; }
.fo-login-preview__submit { display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--fo-preview-unit)); min-height: calc(32 * var(--fo-preview-unit)); border-radius: 5px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-size: calc(11 * var(--fo-preview-unit)); font-weight: 800; }
.fo-login-preview--mobile { --fo-preview-unit: 1px; display: flex; flex-direction: column; width: 320px; max-width: 100%; margin-inline: auto; }
.fo-login-preview--mobile .fo-login-preview__visual { height: 160px; flex-shrink: 0; }
.fo-login-preview--mobile .fo-login-preview__gradient { background: linear-gradient(to bottom, hsl(var(--foreground) / .05), hsl(var(--foreground) / .2), hsl(var(--background))); }
.fo-login-preview--mobile .fo-login-preview__form { position: relative; margin-top: -32px; padding: 20px; border-radius: 24px 24px 0 0; background: hsl(var(--background) / .95); }
.fo-login-preview__mobile-logo { width: 120px; height: auto; margin-bottom: 8px; }

.fo-login-designer { container: fo-login-designer / inline-size; min-width: 0; }
.fo-login-designer__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.fo-login-device-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--muted) / .5); }
.fo-login-device-switch button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 18px; border-radius: 7px; font-size: 13px; font-weight: 650; color: hsl(var(--muted-foreground)); }
.fo-login-device-switch button.is-selected { color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); box-shadow: 0 2px 4px #00000014; }
.fo-login-designer__hint { font-size: 12px; color: hsl(var(--muted-foreground)); }
.fo-login-designer__workspace { display: grid; gap: 24px; align-items: start; }
.fo-login-designer__preview, .fo-login-designer__settings { min-width: 0; }
.fo-login-designer__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.fo-login-designer__heading h3 { font-size: 13px; font-weight: 700; }
.fo-login-designer__live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; color: hsl(var(--muted-foreground)); }
.fo-login-designer__live > span { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--secondary)); }
.fo-login-designer__stage { display: grid; place-items: center; min-height: 22rem; padding: 16px; margin-top: 12px; border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--muted) / .45); }
.fo-login-designer__image-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.fo-login-designer__upload { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid hsl(var(--border)); border-radius: 7px; font-size: 12px; font-weight: 650; cursor: pointer; }
.fo-login-designer__file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fo-login-designer__upload:focus-within { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.fo-login-designer__upload.is-disabled { pointer-events: none; opacity: .5; }
.fo-login-designer__settings { border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--background)); }
.fo-login-designer__controls { display: grid; gap: 20px; padding: 20px; }
.fo-login-designer__profile { padding-bottom: 12px; border-bottom: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fo-login-adjustments { display: grid; gap: 16px; }
.fo-login-designer__text-button { display: inline-flex; align-items: center; gap: 6px; color: hsl(var(--primary)); font-size: 11px; font-weight: 650; }
.fo-login-fit-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.fo-login-fit-option { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 68px; padding: 8px 3px; border: 1px solid hsl(var(--border)); border-radius: 8px; color: hsl(var(--muted-foreground)); font-size: 11px; font-weight: 650; }
.fo-login-fit-option > i { font-size: 17px; }
.fo-login-fit-option.is-selected { border-color: hsl(var(--primary)); color: hsl(var(--primary)); background: hsl(var(--primary) / .06); box-shadow: inset 0 0 0 1px hsl(var(--primary)); }
.fo-login-slider { display: grid; min-width: 0; gap: 7px; }
.fo-login-slider > label { font-size: 12px; font-weight: 650; }
.fo-login-slider__inputs { display: flex; min-width: 0; align-items: center; gap: 8px; }
.fo-login-slider__inputs > input { width: 100%; min-width: 0; accent-color: hsl(var(--primary)); }
.fo-login-slider__number { display: flex; flex: 0 0 70px; align-items: center; gap: 3px; height: 32px; padding: 0 6px; border: 1px solid hsl(var(--border)); border-radius: 6px; background: hsl(var(--background)); }
.fo-login-slider__number input { width: 100%; min-width: 0; background: transparent; text-align: right; font-size: 12px; }
.fo-login-slider__number span { font-size: 11px; color: hsl(var(--muted-foreground)); }
.fo-login-fine-adjustments { border-block: 1px solid hsl(var(--border)); }
.fo-login-fine-adjustments > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; font-size: 12px; font-weight: 650; cursor: pointer; list-style: none; }
.fo-login-fine-adjustments > summary::-webkit-details-marker { display: none; }
.fo-login-fine-adjustments[open] > summary i { transform: rotate(180deg); }
.fo-login-fine-adjustments__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 4px 0 12px; }
.fo-login-fine-adjustments > p { margin-bottom: 12px; font-size: 11px; color: hsl(var(--muted-foreground)); }
.fo-login-designer__toggles { display: grid; gap: 14px; }
.fo-login-designer__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; }
.fo-login-designer__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid hsl(var(--border)); }
.fo-login-designer__footer > span { font-size: 11px; color: hsl(var(--muted-foreground)); }
.fo-login-designer button:focus-visible, .fo-login-designer input:focus-visible, .fo-login-designer summary:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 3px; }
.fo-login-designer button:disabled { cursor: not-allowed; opacity: .5; }
@container fo-login-designer (min-width: 52rem) {
    .fo-login-designer__workspace { grid-template-columns: minmax(0, 1fr) minmax(19rem, 22rem); }
    .fo-login-designer__controls { max-height: max(18rem, calc(100dvh - 17rem)); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
}

.fo-order-motion .fo-order-receipt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; animation: fo-receipt-arrive .6s .6s ease-out both; }
.fo-order-motion .fo-sheet-back { position: absolute; width: 145px; height: 158px; border: 1px solid hsl(var(--border)); border-radius: 9px; background: var(--fo-mint-wash); transform: rotate(-9deg) translateX(-7px); }
.fo-order-motion .fo-receipt { box-sizing: border-box; position: relative; width: 155px; height: 166px; border: 1px solid hsl(var(--border)); border-radius: 9px 9px 4px 4px; background: hsl(var(--background)); box-shadow: 0 9px 20px #0b233313; padding: 16px; transform: rotate(5deg); }
.fo-order-motion .fo-receipt::after { content: ""; position: absolute; height: 6px; bottom: -1px; left: 0; right: 0; background: linear-gradient(135deg, transparent 50%, hsl(var(--background)) 51%) 0 0 / 10px 8px, linear-gradient(225deg, transparent 50%, hsl(var(--background)) 51%) 0 0 / 10px 8px; transform: rotate(180deg); }
.fo-order-motion .fo-receipt-brand { color: hsl(var(--foreground)); font-size: 12px; font-weight: 650; }
.fo-order-motion .fo-receipt-label { color: hsl(var(--muted-foreground)); font-size: 10px; margin-top: 12px; }
.fo-order-motion .fo-receipt-number { color: hsl(var(--foreground)); font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 1px; letter-spacing: .4px; }
.fo-order-motion .fo-receipt-lines { margin-top: 11px; display: grid; gap: 5px; }
.fo-order-motion .fo-receipt-lines span { display: block; height: 3px; border-radius: 3px; background: hsl(var(--border)); }
.fo-order-motion .fo-receipt-lines span:nth-child(2) { width: 84%; }
.fo-order-motion .fo-receipt-lines span:nth-child(3) { width: 65%; }
.fo-order-motion .fo-receipt-stamp { position: absolute; bottom: 16px; right: -26px; display: inline-flex; align-items: center; gap: 4px; color: var(--fo-mint); background: hsl(var(--background)); border: 1px solid var(--fo-mint); border-radius: 4px; padding: 3px 6px; font-size: 10px; font-weight: 650; line-height: 1.4; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; transform: rotate(-12deg); animation: fo-receipt-stamp .4s 1s ease-out both; }
.fo-order-motion .fo-receipt-stamp i { font-size: 11px; }
@keyframes fo-receipt-arrive { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes fo-receipt-stamp { from { opacity: 0; scale: 1.4; } to { opacity: 1; scale: 1; } }
@media (max-width: 374px) {
    .fo-order-motion .fo-scene { margin-left: -18px; margin-right: -18px; }
    .fo-order-motion .fo-vehicle { scale: .86; }
}
@media (prefers-reduced-motion: reduce) {
    .fo-order-motion *, .fo-order-motion *::after { animation: none !important; transition: none !important; }
    /* Keep a short, gentle arrival, without continuous driving or spinning. */
    .fo-order-motion[data-phase="busy"] .fo-vehicle { animation: fo-roll-gently 1.5s ease-out both !important; }
    .fo-order-motion[data-phase="success"] .fo-vehicle { transform: translateX(420px); opacity: 0; }
}
