.management-orange{--management-color:#a34308;--management-soft:#fff0df;border-top-color:#d47729}
.management-orange .management-icon{background:#fff0df;color:#a34308}
.merchant-shell{max-width:940px;margin-inline:auto;display:grid;gap:14px;color:var(--ink,#142e46)}
.merchant-heading{display:flex;align-items:center;gap:12px}
.merchant-heading h1,.merchant-card h2,.merchant-catalogue-row h2{margin:0}
.merchant-heading .btn{font-size:1.35rem}
.merchant-test{margin:0;color:#77512f;font-size:.875rem}
.merchant-shell .btn{min-height:44px}
.merchant-grid,.merchant-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.merchant-counter{min-width:0;display:grid;gap:.35rem;align-content:start;background:#edf5fb;border-radius:14px;padding:14px;box-shadow:inset 0 0 0 1px #dbe7ef}
.merchant-counter.orange{background:#fff1df;color:#884008}
.merchant-counter.green{background:#e8f6eb;color:#22633b}
.merchant-counter.red{background:#fdecea;color:#942e24}
.merchant-counter strong{font-size:clamp(18px,4vw,26px);font-variant-numeric:tabular-nums}
.merchant-counter span,.merchant-catalogue-row small,.merchant-order-row small{font-size:.85rem}
.merchant-shell .merchant-tile{display:flex;align-items:center;text-align:left;gap:10px;justify-content:flex-start;min-height:74px;background:#fff;color:#193950;border:1px solid #d8e4ee}
.merchant-tile>span,.merchant-order-row>div,.merchant-cart-row>div{display:grid;gap:4px}
.merchant-tile .brand-icon{color:#af4c10;flex:none}
.merchant-tile small,.merchant-order-row small{color:#4d677b}
.merchant-card{display:grid;gap:.85rem}
.merchant-card :is(p,dl,ul,ol){margin:0}
.merchant-card dl{display:grid;gap:.4rem}
.merchant-card dt,.merchant-card dd{margin:0}
.merchant-card dl:not(.merchant-stock)>div,.merchant-lines li{display:flex;justify-content:space-between;gap:14px}
.merchant-card dd,.merchant-lines strong{font-variant-numeric:tabular-nums}
.merchant-card dl:not(.merchant-stock)>div:last-child{font-weight:750}
.merchant-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding-bottom:3px}
.merchant-tabs .btn{white-space:nowrap;flex:none}
.merchant-card form,.merchant-shell form{display:grid;gap:10px}
.merchant-card form+form{padding-top:.65rem;border-top:1px solid #dbe7ef}
.merchant-card :is(input,textarea,select){min-width:0;width:100%;font-size:16px}
.merchant-card [type=checkbox]{width:auto}
.merchant-card details{padding-block:.5rem;border-top:1px solid #dbe7ef}
.merchant-card summary{cursor:pointer;font-weight:650}
.merchant-card details>form{padding-top:12px}
.merchant-stock{grid-template-columns:repeat(3,minmax(0,1fr));text-align:center;background:#edf5fb;padding:12px;border-radius:12px}
.merchant-stock dd{font-size:1.25rem;font-weight:750}
.merchant-catalogue-row,.merchant-order-row{display:flex;align-items:center;gap:12px}
.merchant-catalogue-row>div,.merchant-order-row>div{flex:1;min-width:0}
.merchant-photo{display:grid;place-items:center;width:56px;height:56px;object-fit:cover;border-radius:11px;background:#eef5fb;color:#2a648e;flex:none}
.merchant-catalogue-row h2{font-size:1.06rem}
.merchant-variant,.merchant-cart-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:.6rem 0;border-bottom:1px solid #dbe7ef}
.merchant-variant small,.merchant-cart-row small{display:block;color:#45637a}
.merchant-stepper{display:flex!important;align-items:center;margin-inline-start:auto}
.merchant-stepper .btn{padding-inline:12px}
.merchant-summary{background:#eef6fb;padding:12px;border-radius:12px;display:grid;gap:10px}
.merchant-lines,.merchant-history,.merchant-timeline{list-style:none;padding:0;display:grid;gap:.55rem}
.merchant-history li{display:grid;gap:.25rem;border-bottom:1px solid #e3ebf1;padding-bottom:.45rem}
.merchant-history time{color:#45637a;font-size:.82rem}
.merchant-timeline li{padding-left:18px;border-left:3px solid #d4e0ea;color:#45637a}
.merchant-timeline li.complete{border-color:#2e8c53;color:#173d2b}
.merchant-status{display:inline-block;width:fit-content;border-radius:99px;background:#e8f1fb;padding:.25rem .6rem;font-size:.83rem;font-weight:700}
.merchant-status.pending,.merchant-status.preparing,.merchant-tour{background:#fff3e3;color:#824116}
.merchant-status.ready{background:#e8f6eb;color:#22633b}
.merchant-status.done{background:#eef2f7;color:#425970}
.merchant-status.shipped{background:#f0ebfb;color:#53378a}
.merchant-status.cancelled,.merchant-status.expired{background:#fcecea;color:#942e24}
.merchant-tour h3{margin-top:0}
[data-merchant-error]:not(:empty){color:#a62820;font-weight:600}
[data-merchant-error]:empty{display:none}
@media(max-width:440px){.merchant-catalogue-row{align-items:flex-start}.merchant-catalogue-row .btn{padding-inline:10px}.merchant-form-grid{grid-template-columns:1fr}.merchant-tile{padding-inline:9px}}
.merchant-photo-grid{display:flex;gap:12px;flex-wrap:wrap}
.merchant-photo-grid label{display:grid;justify-items:center;gap:5px;font-size:.8rem}
.outing-stop>.merchant-tour{grid-column:1/-1;margin:0}
.merchant-shell{min-width:0;grid-template-columns:minmax(0,1fr)}
.merchant-shell .merchant-tile{white-space:normal;min-width:0;overflow-wrap:anywhere}
.merchant-tile>span{min-width:0}
.merchant-shell .merchant-grid,.merchant-tabs,.merchant-form-grid{min-width:0}

.pilot-workspace .main[data-section="shop"] .merchant-shell .merchant-tile{background:#fff;color:#193950;min-height:66px;line-height:1.25}
.merchant-tile small{font-weight:500;margin-top:3px}
.merchant-tile .brand-icon{color:#a34308}

.customer-order-detail{width:100%;max-width:680px;margin-inline:auto;display:grid;gap:12px;color:#142744}
.customer-order-detail .card{min-width:0;border-radius:18px;padding:14px;box-shadow:0 4px 14px rgb(21 57 88 / .06)}
[data-section="shop"] .customer-order-detail .card{border-top:1px solid #dce6ef}
.customer-order-detail :is(h2,p){overflow-wrap:anywhere}
.customer-order-detail h2{display:flex;align-items:center;gap:.55rem;font-size:clamp(1.05rem,4vw,1.24rem);color:#132647}
.customer-order-detail h2>.icon{color:#116582;flex:none}
.customer-order-detail .order-header{display:flex;align-items:center;gap:.8rem}
.order-header .merchant-status{margin-top:.35rem}
.order-symbol{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex:none;background:#ffe9ad;color:#8e5209}
.order-header .order-symbol{width:54px;height:54px}
.order-symbol-orange{background:#ffe3c4;color:#995008}
.order-articles{list-style:none;padding:0}
.order-articles li{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:.6rem;align-items:center;padding:.55rem 0}
.order-articles li+li{border-top:1px solid #e3ebf1}
.order-articles .merchant-photo{width:52px;height:48px;min-height:0;padding:0}
.order-articles li>strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.order-articles li div{overflow-wrap:anywhere}
.order-articles small{display:block;margin-top:.15rem;color:#46586d;line-height:1.3}
.order-discount,.order-free-shipping{color:#17603b;font-weight:700}
.order-free-shipping{display:inline-block;background:#dff4e6;border-radius:99px;padding:1px 8px}
.order-total{align-items:center;background:#dff1fc;border-radius:12px;padding:.65rem .75rem;margin-top:.2rem}
.order-total dd{font-size:1.25rem;white-space:nowrap}
.customer-order-detail .order-payment{background:#fff5d6}
.customer-order-detail .order-delivery{background:#fff0dd}
.customer-order-detail .order-hold{display:flex;align-items:center;gap:.65rem;background:#e4f3fc}
.order-hold p{margin:0}
.order-payment-instructions{display:flex;align-items:flex-start;gap:.5rem;background:#ffedbd;border-radius:12px;padding:.65rem}
.order-payment-instructions>.icon,.order-hold>.icon{flex:none}
.order-payment-instructions p,.order-delivery>p{white-space:pre-line}
.order-timeline{padding:0;list-style:none}
.order-timeline li{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);gap:.5rem;padding:0 0 .2rem}
.order-timeline li:not(:last-child)::after{content:'';position:absolute;left:10px;top:22px;bottom:-5px;width:2px;background:#c5cfdb}
.order-timeline li.is-complete::after{background:#318953}
.order-step-dot{z-index:1;display:grid;place-items:center;margin-top:7px;width:22px;height:22px;border:2px solid #a8b4c1;border-radius:50%;background:white}
.order-step-dot .icon{width:14px;height:14px}
.is-complete .order-step-dot{border-color:#227747;background:#227747;color:white}
.is-current .order-step-dot{border:5px solid #1376b2}
.order-timeline li>div{padding:.4rem .5rem;border-radius:10px}
.order-timeline li.is-current>div{background:#dff1fc;font-weight:750}
.order-timeline small{display:block;color:#334d63;font-weight:400;line-height:1.35}
.order-timeline .is-upcoming{color:#46586d}
.order-history summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.55rem;align-items:center;min-height:44px;cursor:pointer;list-style:none}
.order-history summary::-webkit-details-marker{display:none}
.order-history summary .icon:last-child{transform:rotate(90deg)}
.order-history[open] summary .icon:last-child{transform:rotate(-90deg)}

.home-orders{padding:14px;border:1px solid #dce6ef;border-radius:18px;background:#fff;box-shadow:0 4px 14px rgb(21 57 88 / .06);min-width:0;color:#132647}
.home-orders header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.15rem .55rem;margin-bottom:.6rem}
.home-orders h2{display:flex;align-items:center;gap:.5rem;margin:0;font-size:clamp(1rem,4vw,1.24rem)}
.home-orders h2 .icon,.home-order-next .icon{flex:none;color:#c45117}
.home-orders header button{display:inline-flex;align-items:center;gap:.25rem;min-height:44px;margin-left:auto;white-space:nowrap}
.home-order-list{display:grid;gap:.55rem}
.home-order-card{--order-soft:#f9fbfd;--order-badge:#e8eef3;--order-ink:#344e61;display:grid;grid-template-columns:50px minmax(0,1fr) 24px;gap:.55rem;align-items:center;width:100%;min-width:0;border:1px solid rgb(21 57 88 / .08);border-radius:16px;background:var(--order-soft);color:#132647;text-align:left;padding:.65rem;font:inherit;cursor:pointer}
.home-order-payment,.home-order-preparing{--order-soft:#fff8ef;--order-badge:#fff3e3;--order-ink:#824116}
.home-order-schedule{--order-soft:#fff0dd;--order-badge:#ffdfb6;--order-ink:#914006}
.home-order-ready{--order-soft:#eef8f2;--order-badge:#e8f6eb;--order-ink:#22633b}
.home-order-shipped{--order-soft:#f6effc;--order-badge:#f0ebfb;--order-ink:#53378a}
.home-order-card .merchant-photo{width:50px;height:48px;min-height:0;padding:0;color:#c45117;background:rgb(255 255 255 / .8)}
.home-order-copy{display:grid;min-width:0;gap:.25rem}
.home-order-title{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.1rem .5rem;align-items:baseline;font-size:.96rem;line-height:1.23}
.home-order-title strong{min-width:0;overflow-wrap:anywhere}
.home-order-title b{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.home-order-copy small{color:#46586d;font-size:.82rem}
.home-order-badge{justify-self:start;border-radius:99px;background:var(--order-badge);color:var(--order-ink);padding:.18rem .5rem;font-size:.78rem;font-weight:750}
.home-order-next{display:flex;align-items:start;gap:.3rem;color:#33485c;font-size:.81rem;line-height:1.28}
.home-order-next .icon{width:15px;height:15px}
.home-order-arrow{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff}
.home-order-arrow .icon{width:16px;height:16px}
@media(max-width:360px){.home-order-card{grid-template-columns:42px minmax(0,1fr) 20px;gap:.4rem}.home-order-card .merchant-photo{width:42px;height:42px}.home-order-arrow{width:20px;height:20px}}


.merchant-articles{display:grid;gap:12px}
.merchant-articles form{margin:0}
.merchant-article-filters,.merchant-option-buttons{display:flex;flex-wrap:wrap;gap:6px}
.merchant-article-filters .btn,.merchant-option-buttons .btn{min-height:38px;padding:.35rem .65rem}
.merchant-article-listing{display:grid;grid-template-columns:60px minmax(0,1fr) auto;gap:.65rem;align-items:start;border-radius:18px}
.merchant-article-listing h2{font-size:1.05rem;margin:0 0 .2rem}
.merchant-article-listing p{margin:.25rem 0;font-size:.86rem}
.merchant-article-listing small{display:block;color:#46586d}
.merchant-article-listing .badge{margin:.2rem .2rem .2rem 0}
.merchant-active-offer{background:#ffe4ed;color:#9c244e}
.merchant-article-menu{position:relative}
.merchant-article-menu summary{cursor:pointer;list-style:none;text-align:center;min-width:34px;min-height:34px;font-weight:800}
.merchant-article-menu summary::-webkit-details-marker{display:none}
.merchant-article-menu[open]>*:not(summary){display:block;width:100%;margin-block:.25rem;font-size:.85rem;text-align:left}
.merchant-article-listing:has(.merchant-article-menu[open]) .merchant-article-menu{grid-column:1/-1}
.merchant-article-hero{display:flex;gap:.75rem;align-items:center}
.merchant-article-hero p{margin:.15rem 0 0;color:#46586d}
.merchant-article-section{background:#fff;border:1px solid #e0e6ee;border-radius:16px}
.merchant-article-section summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.6rem;align-items:center;list-style:none;cursor:pointer;padding:.85rem}
.merchant-article-section summary::-webkit-details-marker{display:none}
.merchant-article-section summary>.icon:first-child{color:#a44916}
.merchant-article-section[open]>summary>.icon:last-child{transform:rotate(90deg)}
.merchant-article-section>div{padding:0 .85rem .85rem}
.merchant-variant-edit,.merchant-custom-edit{margin-block:.5rem;padding:.45rem;background:#fff5ed;border-radius:12px}
.merchant-option-buttons .btn{display:inline-flex;gap:.35rem;align-items:center;white-space:normal}
.merchant-color-dot{width:13px;height:13px;border-radius:50%;background:var(--swatch);border:1px solid rgb(19 38 71 / .24);flex:none}

.client-orders{display:grid;gap:.85rem}
.client-orders form[data-merchant-form="search"]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.55rem}
.client-orders form[data-merchant-form="search"] [data-merchant-error]:empty{display:none}
.client-order-filters{margin:0}
.client-order-row{display:grid;gap:.65rem;border-left:4px solid var(--order-edge,#c8d5e5);border-radius:18px}
.client-order-top{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}
.client-order-top h2,.order-header h2{margin:0;color:#09264a;font-size:1.22rem}
.client-order-top strong,.order-header-total{color:#09264a;white-space:nowrap}
.client-order-top small,.client-order-preview small,.order-header small{display:block;color:#4a5e74;margin-top:.2rem}
.client-order-preview{display:flex;align-items:center;gap:.75rem}
.client-order-preview .merchant-photo{width:62px;height:48px}
.client-order-handover{padding:.65rem .8rem;background:var(--order-soft,#eaf2fb);color:var(--order-ink,#173e64);border-radius:12px;margin:0}
.client-order-handover p{margin:.2rem 0 0}
.client-order-actions{display:grid;gap:.55rem}
.client-order-actions .btn,.client-order-row>.btn{min-height:44px;justify-content:center}
.client-order-row>.btn{background:#fff;color:#154782;border:1px solid #2b5690}
.customer-order-detail .order-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;background:var(--order-soft,#eef5fb)}
.order-header .order-symbol{width:42px;height:42px;color:var(--order-ink,#154782);background:var(--order-soft,#eef5fb)}
.order-tone-pending,.order-tone-preparing{--order-edge:#d48330;--order-soft:#fff3e3;--order-ink:#824116}
.order-tone-ready{--order-edge:#4b9a65;--order-soft:#e8f6eb;--order-ink:#22633b}
.order-tone-done{--order-edge:#8295ad;--order-soft:#eef2f7;--order-ink:#425970}
.order-tone-shipped{--order-edge:#9174c4;--order-soft:#f0ebfb;--order-ink:#53378a}
.order-tone-cancelled,.order-tone-expired{--order-edge:#c97671;--order-soft:#fcecea;--order-ink:#942e24}
.client-order-row .merchant-status,.order-header .merchant-status{background:var(--order-soft);color:var(--order-ink)}
[data-section="shop"] .client-order-row{border-top:1px solid #dce6ef}
.client-order-preview .merchant-photo{min-height:0;padding:0}
.client-order-filters{flex-wrap:wrap;overflow:visible}
.client-order-filters .btn{min-height:44px;font-size:.81rem;padding:.45rem .65rem}
.client-order-filters [aria-pressed="true"],.client-orders form[data-merchant-form="search"] button[type="submit"],
.client-order-actions button[data-a="merchant-contact"]{background:#154782;color:#fff;border-color:#154782}
