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-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);
}

.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-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; }
}
