body.body-layout-foodstrip .overlay-card.orders-card {
    --orders-accent: #45c77b;
    --orders-bg: #10130f;
    --orders-border: rgba(244, 247, 239, 0.11);
    --orders-muted: rgba(244, 247, 239, 0.58);
    --orders-panel: #171b16;
    --orders-panel-strong: #1d221c;
    --orders-text: #f4f7ef;
    background: var(--orders-bg) !important;
    border: 1px solid var(--orders-border) !important;
    border-radius: 24px !important;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42) !important;
    box-sizing: border-box;
    height: min(900px, calc(100dvh - 40px));
    max-height: none !important;
    max-width: min(1420px, calc(100vw - 40px)) !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: min(1420px, calc(100vw - 40px)) !important;
}

body.body-layout-foodstrip.browse-site-light .overlay-card.orders-card {
    --orders-bg: #fffdf8;
    --orders-border: rgba(20, 27, 21, 0.10);
    --orders-muted: rgba(20, 27, 21, 0.57);
    --orders-panel: #f4f4ee;
    --orders-panel-strong: #eceee7;
    --orders-text: #141b15;
    background: var(--orders-bg) !important;
    border-color: var(--orders-border) !important;
    box-shadow: 0 30px 90px rgba(20, 27, 21, 0.18) !important;
}

body.body-layout-foodstrip .orders-card > .overlay-close {
    align-items: center;
    background: var(--orders-panel-strong) !important;
    border: 1px solid var(--orders-border) !important;
    border-radius: 50% !important;
    color: var(--orders-text) !important;
    display: flex;
    font-size: 28px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    position: absolute !important;
    right: 24px !important;
    top: 22px !important;
    width: 44px;
    z-index: 8;
}

body.body-layout-foodstrip #orders-content {
    color: var(--orders-text);
    display: block !important;
    height: 100%;
    max-height: none !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100%;
}

.orders-workspace-head {
    align-items: center;
    border-bottom: 1px solid var(--orders-border);
    box-sizing: border-box;
    display: flex;
    height: 108px;
    justify-content: space-between;
    padding: 24px 88px 22px 34px;
}

.orders-workspace-head > div {
    min-width: 0;
}

.orders-workspace-head > div > span {
    color: var(--orders-accent);
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

body.body-layout-foodstrip .orders-workspace-head .orders-title {
    color: var(--orders-text) !important;
    font-size: clamp(30px, 3vw, 42px) !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.orders-workspace-head > p {
    color: var(--orders-muted);
    font-size: 13px;
    margin: 0;
}

.orders-workspace-head > p strong {
    color: var(--orders-text);
    font-size: 20px;
    margin-right: 4px;
}

.orders-workspace {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    height: calc(100% - 108px);
    min-height: 0;
}

.orders-history-pane {
    background: var(--orders-panel);
    border-right: 1px solid var(--orders-border);
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 16px;
    scrollbar-color: color-mix(in srgb, var(--orders-text) 18%, transparent) transparent;
    scrollbar-width: thin;
}

.orders-history-list {
    display: grid;
    gap: 8px;
}

.orders-history-item {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--orders-text);
    cursor: pointer;
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 15px;
    text-align: left;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
    width: 100%;
}

.orders-history-item:hover {
    background: color-mix(in srgb, var(--orders-text) 5%, transparent);
}

.orders-history-item.is-selected {
    background: var(--orders-panel-strong);
    border-color: color-mix(in srgb, var(--orders-accent) 35%, var(--orders-border));
}

.orders-history-item:focus-visible {
    outline: 2px solid var(--orders-accent);
    outline-offset: 2px;
}

.orders-history-item-top {
    align-items: start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
}

.orders-history-item-top > span:first-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.orders-history-item-top strong {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-history-item-top small {
    color: var(--orders-muted);
    font-size: 11px;
    font-weight: 700;
}

.orders-history-price {
    align-items: end;
    display: grid;
    flex: 0 0 auto;
    gap: 4px;
    text-align: right;
}

.orders-history-price > strong {
    font-size: 15px;
}

.orders-history-price > small {
    color: var(--orders-accent);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.orders-history-price > small.is-cancelled {
    color: #e77a72;
}

.orders-history-price > small.is-new {
    color: #d4a947;
}

.orders-history-thumbs {
    align-items: center;
    display: flex;
    min-height: 34px;
}

.orders-history-thumb,
.orders-history-extra {
    align-items: center;
    background: var(--orders-bg);
    border: 2px solid var(--orders-panel);
    border-radius: 10px;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    margin-right: -5px;
    overflow: hidden;
    width: 34px;
}

.orders-history-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.orders-history-thumb.is-placeholder {
    color: var(--orders-muted);
}

.orders-history-extra {
    color: var(--orders-muted);
    font-size: 10px;
    font-weight: 900;
    margin-left: 7px;
}

.orders-detail-pane {
    box-sizing: border-box;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 30px 38px 48px;
    scrollbar-color: color-mix(in srgb, var(--orders-text) 18%, transparent) transparent;
    scrollbar-width: thin;
}

.orders-detail-mobile-bar {
    display: none;
}

.orders-detail-head {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding-right: 2px;
}

.orders-detail-store {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.orders-detail-store > img,
.orders-detail-store > span {
    align-items: center;
    background: var(--orders-panel);
    border: 1px solid var(--orders-border);
    border-radius: 14px;
    display: flex;
    flex: 0 0 auto;
    height: 52px;
    justify-content: center;
    object-fit: cover;
    overflow: hidden;
    width: 52px;
}

.orders-detail-store > div {
    min-width: 0;
}

.orders-detail-store small,
.orders-detail-store p {
    color: var(--orders-muted);
    font-size: 12px;
}

.orders-detail-store h3 {
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 3px 0 5px;
}

.orders-detail-store p {
    margin: 0;
}

.orders-detail-head .orders-modern-status {
    margin-right: 0;
}

.orders-detail-journey {
    border-bottom: 1px solid var(--orders-border);
    margin-top: 24px;
    padding-bottom: 22px;
}

.orders-detail-journey .order-journey {
    background: transparent !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.orders-detail-journey .order-journey > p {
    color: var(--orders-muted);
    margin-bottom: 0;
}

.orders-detail-facts {
    border-bottom: 1px solid var(--orders-border);
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 22px 0;
}

.orders-detail-facts > div {
    align-items: flex-start;
    display: flex;
    gap: 11px;
    min-width: 0;
}

.orders-detail-facts > div > svg {
    color: var(--orders-accent);
    flex: 0 0 auto;
    margin-top: 2px;
}

.orders-detail-facts span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.orders-detail-facts small,
.orders-detail-comment small {
    color: var(--orders-muted);
    font-size: 11px;
    font-weight: 800;
}

.orders-detail-facts strong {
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.orders-detail-section {
    padding: 24px 0 8px;
}

.orders-detail-section-head {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.orders-detail-section-head h4 {
    font-size: 18px;
    margin: 0;
}

.orders-detail-section-head span {
    color: var(--orders-muted);
    font-size: 12px;
    font-weight: 800;
}

.orders-detail-items {
    display: grid;
}

.orders-detail-item {
    align-items: center;
    border-bottom: 1px solid var(--orders-border);
    display: grid;
    gap: 14px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    padding: 13px 0;
}

.orders-detail-item-image {
    align-items: center;
    background: var(--orders-panel);
    border-radius: 12px;
    color: var(--orders-muted);
    display: flex;
    height: 58px;
    justify-content: center;
    overflow: hidden;
    width: 58px;
}

.orders-detail-item-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.orders-detail-item-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.orders-detail-item-copy strong {
    font-size: 14px;
    line-height: 1.28;
}

.orders-detail-item-copy small,
.orders-detail-item-copy span {
    color: var(--orders-muted);
    font-size: 11px;
    line-height: 1.3;
}

.orders-detail-item-price {
    align-items: flex-end;
    display: grid;
    gap: 8px;
    min-width: 82px;
    text-align: right;
}

.orders-detail-item-price > strong {
    font-size: 14px;
}

.orders-detail-item-price button {
    background: transparent;
    border: 1px solid var(--orders-border);
    border-radius: 999px;
    color: var(--orders-muted);
    cursor: pointer;
    font-size: 10px;
    font-weight: 850;
    min-height: 27px;
    padding: 0 10px;
}

.orders-detail-item-price button:hover,
.orders-detail-item-price button.is-on {
    border-color: color-mix(in srgb, var(--orders-accent) 45%, transparent);
    color: var(--orders-accent);
}

.orders-detail-comment {
    border-bottom: 1px solid var(--orders-border);
    padding: 16px 0;
}

.orders-detail-comment p {
    font-size: 13px;
    line-height: 1.45;
    margin: 5px 0 0;
}

.orders-detail-summary {
    display: grid;
    gap: 10px;
    margin-left: auto;
    max-width: 420px;
    padding: 22px 0;
    width: 100%;
}

.orders-detail-summary > div {
    align-items: center;
    color: var(--orders-muted);
    display: flex;
    font-size: 13px;
    justify-content: space-between;
}

.orders-detail-summary strong {
    color: var(--orders-text);
}

.orders-detail-summary .is-total {
    border-top: 1px solid var(--orders-border);
    color: var(--orders-text);
    font-size: 18px;
    font-weight: 950;
    margin-top: 4px;
    padding-top: 14px;
}

.orders-detail-summary .is-total strong {
    font-size: 24px;
}

.orders-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.orders-detail-actions button,
.orders-detail-back {
    align-items: center;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    gap: 7px;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
}

.orders-action-primary {
    background: var(--orders-accent);
    border: 1px solid var(--orders-accent);
    color: #0d1911;
}

.orders-action-secondary {
    background: var(--orders-panel);
    border: 1px solid var(--orders-border);
    color: var(--orders-text);
}

.orders-action-danger {
    background: transparent;
    border: 1px solid rgba(218, 84, 74, 0.42);
    color: #de746b;
}

.orders-detail-actions button:focus-visible,
.orders-detail-back:focus-visible {
    outline: 2px solid var(--orders-accent);
    outline-offset: 2px;
}

.orders-workspace-empty {
    color: var(--orders-muted);
    font-size: 13px;
    margin: 18px 0;
}

.orders-workspace-gate {
    align-content: center;
    box-sizing: border-box;
    display: grid;
    height: 100%;
    justify-items: center;
    margin: 0 auto;
    max-width: 520px;
    padding: 40px 24px;
    text-align: center;
}

.orders-workspace-gate > svg {
    color: var(--orders-accent);
    margin-bottom: 16px;
}

.orders-workspace-gate p {
    color: var(--orders-muted);
    line-height: 1.5;
    margin: 8px 0 22px;
}

body:has(#orders-modal.open) .mobile-app-nav {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(18px) !important;
}

@media (max-width: 1100px) {
    .orders-workspace {
        grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    }

    .orders-detail-pane {
        padding-inline: 28px;
    }

    .orders-detail-facts {
        grid-template-columns: 1fr 1fr;
    }

    .orders-detail-facts > div:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 860px) {
    html body.body-layout-foodstrip #orders-modal {
        align-items: stretch !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    html body.body-layout-foodstrip #orders-modal .overlay-card.orders-card {
        border: 0 !important;
        border-radius: 0 !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        max-width: 100vw !important;
        padding: 0 !important;
        width: 100vw !important;
    }

    body.body-layout-foodstrip .orders-card > .overlay-close {
        right: 14px !important;
        top: calc(12px + env(safe-area-inset-top)) !important;
    }

    .orders-workspace-head {
        height: calc(82px + env(safe-area-inset-top));
        padding: calc(16px + env(safe-area-inset-top)) 70px 13px 18px;
    }

    body.body-layout-foodstrip .orders-workspace-head .orders-title {
        font-size: 28px !important;
    }

    .orders-workspace-head > div > span {
        display: none;
    }

    .orders-workspace-head > p {
        display: none;
    }

    .orders-workspace {
        display: block;
        height: calc(100% - 82px - env(safe-area-inset-top));
        position: relative;
    }

    .orders-history-pane {
        border-right: 0;
        height: 100%;
        padding: 12px 12px calc(24px + env(safe-area-inset-bottom));
    }

    .orders-history-item {
        background: var(--orders-bg);
        border-color: var(--orders-border);
        min-height: 126px;
    }

    .orders-history-item.is-selected {
        background: var(--orders-bg);
        border-color: var(--orders-border);
    }

    .orders-detail-pane {
        background: var(--orders-bg);
        display: none;
        height: 100%;
        inset: 0;
        padding: 0 18px calc(30px + env(safe-area-inset-bottom));
        position: absolute;
        z-index: 2;
    }

    .orders-workspace.is-detail-open .orders-history-pane {
        display: none;
    }

    .orders-workspace.is-detail-open .orders-detail-pane {
        display: block;
    }

    .orders-detail-mobile-bar {
        background: var(--orders-bg);
        display: flex;
        padding: 12px 54px 10px 0;
        position: sticky;
        top: 0;
        z-index: 3;
    }

    .orders-detail-back {
        background: transparent;
        border: 0;
        color: var(--orders-text);
        min-height: 40px;
        padding: 0 4px;
    }

    .orders-detail-head {
        display: grid;
        gap: 14px;
    }

    .orders-detail-head .orders-modern-status {
        justify-self: start;
    }

    .orders-detail-store h3 {
        font-size: 24px;
    }

    .orders-detail-facts {
        grid-template-columns: 1fr;
    }

    .orders-detail-facts > div:nth-child(2) {
        grid-column: auto;
        grid-row: auto;
    }

    .orders-detail-item {
        grid-template-columns: 52px minmax(0, 1fr) auto;
    }

    .orders-detail-item-image {
        height: 52px;
        width: 52px;
    }

    .orders-detail-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .orders-detail-actions button {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .orders-history-item {
        padding: 14px;
    }

    .orders-detail-pane {
        padding-inline: 14px;
    }

    .orders-detail-item {
        gap: 10px;
        grid-template-columns: 46px minmax(0, 1fr) auto;
    }

    .orders-detail-item-image {
        border-radius: 10px;
        height: 46px;
        width: 46px;
    }

    .orders-detail-item-price {
        min-width: 68px;
    }

    .orders-detail-item-price button {
        padding-inline: 8px;
    }
}