/* Consumer workspaces: one scroll surface, three persistent destinations. */
.consumer-shell{--consumer-bottom:var(--bottom-bar-height,calc(60px + env(safe-area-inset-bottom)));--shop-accent:#ffd531;display:block!important;background:#f4f5f7;min-height:100dvh;color:#20252d}

.consumer-shell .main-area{margin:0!important;width:100%;min-width:0}

.consumer-shell .workspace{width:100%;max-width:1100px;margin:0 auto;padding:22px 24px calc(var(--consumer-bottom) + 28px)!important;min-height:calc(100dvh - 64px)}

.consumer-header{height:64px;display:flex;align-items:center;gap:18px;background:#fff;border-bottom:1px solid #e9ebef;padding:0 max(20px,calc((100vw - 1100px)/2));position:sticky;top:0;z-index:25}

.consumer-brand{font-size:19px;font-weight:850;letter-spacing:1.5px;color:#162a43;text-decoration:none;display:flex;align-items:center;gap:8px}

.consumer-brand span{font-size:9px;letter-spacing:1px;padding:4px 5px;background:#f3f4f6;border-radius:4px}

.consumer-header .breadcrumb{font-size:15px;font-weight:700;border:0;margin:0;padding:0;flex:1}
.consumer-header .btn{padding:8px;min-width:40px;min-height:40px}

.consumer-bottom{position:fixed;z-index:35;bottom:0;left:0;right:0;min-height:calc(60px + env(safe-area-inset-bottom));padding:4px max(12px,calc((100vw - 660px)/2)) calc(5px + env(safe-area-inset-bottom));background:rgba(255,255,255,.98);border-top:1px solid #e6e8ec;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:4px}

.consumer-tab{flex:1;min-width:0;display:flex;gap:2px;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;color:#7a818b;font-size:12px;line-height:1.25;font-weight:600;text-align:center;border-radius:10px;padding:4px;min-height:48px}

.consumer-tab .icon{width:23px;height:23px}
.consumer-tab.active{color:#de560c;background:#fff4e9}
.shop-shell .consumer-tab.active{color:#303034;background:#fff7d1}

.consumer-shell .panel{border:1px solid #e8eaed;box-shadow:none;border-radius:16px}
.consumer-shell h1{font-size:24px;line-height:1.3;margin:0}
.consumer-shell h2{font-size:18px;line-height:1.4}
.consumer-shell .btn{font-size:14px}
.consumer-shell .help{font-size:13px;line-height:1.6}

.consumer-scope{display:flex;align-items:center;gap:7px;font-size:13px;line-height:1.5;color:#666e78;min-width:0}
.consumer-scope .icon{width:16px;height:16px;flex-shrink:0}
.consumer-scope span{overflow-wrap:anywhere}

.rider-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 9px}
.rider-heading small{font-size:15px;color:#7a818b;font-weight:500}
.consumer-hint{font-size:13px;color:#7c838b;line-height:1.65;margin:8px 0 18px}

.rider-capacity{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px;color:#666e78;padding:12px 15px;background:#e9edf2;border-radius:10px;margin-bottom:18px}
.rider-capacity strong{color:#263445}

.rider-job-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rider-job{background:#fff;border:1px solid #e6e8ec;border-radius:16px;padding:20px;min-width:0;box-shadow:0 2px 6px #172f4810}

.rider-job-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:11px;color:#858b95}
.rider-job-metrics{display:grid;grid-template-columns:1fr 1fr;margin:20px 0 16px}
.rider-job-metrics div+div{padding-left:18px;border-left:1px solid #edf0f3}
.rider-job-metrics strong{font-size:25px;line-height:1.2;display:block;letter-spacing:-.8px}
.rider-job-metrics small{font-size:11px;color:#9399a1;display:block;margin-top:6px}

.rider-stops{display:grid;gap:14px;margin:18px 0}
.rider-stops>div{display:grid;grid-template-columns:7px 36px 1fr;gap:8px;align-items:baseline}
.rider-stops i{width:7px;height:7px;background:#23b8a6;border-radius:50%;align-self:center}
.rider-stops>div+div i{background:#f18739}
.rider-stops span{font-size:11px;color:#8b9098}
.rider-stops strong{font-size:16px;overflow-wrap:anywhere;font-weight:650}
.rider-goods{font-size:13px;color:#767d86;line-height:1.6;margin:12px 0;overflow-wrap:anywhere}
.rider-reason{background:#fff3e4;color:#a35f25;border-radius:7px;padding:7px 9px;font-size:12px;margin:10px 0;line-height:1.5}
.rider-claim.btn{background:#fc6b20;color:#fff;border:0;min-height:48px;border-radius:10px;font-size:16px;font-weight:750;margin-top:5px}
.rider-claim.btn:hover{background:#e65a12}
.rider-job .rider-destination{font-size:21px;margin:17px 0 8px}
.rider-task-actions{display:flex;gap:8px;margin-top:18px}
.rider-task-actions .btn{flex:1;min-height:44px}
.consumer-empty{text-align:center;padding:60px 20px;background:#fff;border-radius:16px;color:#9198a2;grid-column:1/-1}
.consumer-empty>.icon{width:38px;height:38px;margin:0 auto 18px}
.consumer-empty h2{font-weight:500;font-size:16px}

.personal-card{text-align:center;background:#fff;padding:30px 22px;border-radius:18px;margin-bottom:20px}
.personal-card .avatar{margin:0 auto 16px;width:64px;height:64px;font-size:28px;background:#fff1e5;color:#ad5a23}
.personal-card .consumer-scope{justify-content:center;margin-top:20px}
.personal-links{border-radius:16px;background:#fff;overflow:hidden}
.personal-links a{display:flex;align-items:center;gap:14px;padding:20px;text-decoration:none;color:#303b49;border-bottom:1px solid #f0f1f4;font-size:15px}
.personal-links a:last-child{border:0}
.personal-links a span{flex:1}
.personal-links b{color:#acb1b8}
.personal-language{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 5px;margin:10px 0}
.personal-language .language{max-width:190px;font-size:14px;min-height:44px}
.consumer-shell[data-surface="personal"] .workspace{max-width:680px}

.shop-shell[data-surface="shop"] .workspace{padding-top:0!important;padding-bottom:calc(var(--consumer-bottom) + var(--cart-bar-height,72px) + 24px)!important}
.shop-top{padding:18px 0 14px}
.shop-search{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e6e8ec;border-radius:24px;padding:3px 6px 3px 15px;margin-top:14px}
.shop-search>.icon{color:#939ba6;width:19px;height:19px;flex-shrink:0}
.shop-search input{flex:1;min-width:0;background:transparent;border:0;box-shadow:none;padding:8px 0;min-height:36px;font-size:14px}
.shop-search .btn{min-height:36px;border-radius:20px;padding:6px 10px;font-size:12px}
.shop-reference-note{font-size:11px;color:#8d8580;line-height:1.6;margin:10px 6px 0}

.shop-browser{display:grid;grid-template-columns:136px minmax(0,1fr);background:#fff;border-radius:18px;overflow:clip;align-items:start;min-height:0}
.shop-categories{background:#f0f1f3;position:sticky;top:64px;max-height:calc(100dvh - 220px);overflow-y:auto;scrollbar-width:thin;padding:6px 0}
.shop-categories button{display:block;width:100%;border:0;border-radius:0;background:transparent;color:#666b73;text-align:left;padding:20px 14px;font-size:14px;line-height:1.5;min-height:58px;overflow-wrap:anywhere;cursor:pointer}
.shop-categories button.active{background:#fff;color:#282c34;font-weight:750;box-shadow:inset 4px 0 var(--shop-accent)}
.shop-products{min-width:0;padding:16px 22px}
.category-title{font-size:15px!important;font-weight:700;margin:2px 0 8px}
.category-title small{font-weight:400;color:#949aa3;font-size:12px;margin-left:5px}
.shop-product{display:flex;gap:18px;padding:20px 0;border-bottom:1px solid #f2f3f5;min-width:0}
.shop-product:last-child{border:0}
.product-cover{width:112px;height:112px;flex-shrink:0;border-radius:12px;background:linear-gradient(135deg,#f2efe9,#e5e9ee);color:#8d9aa7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:8px;text-align:center}
.product-cover .icon{width:42px;height:42px;stroke-width:1}
.product-cover span{font-size:10px;word-break:break-all;max-height:30px;overflow:hidden}
.product-content{flex:1;min-width:0}
.product-content h3{font-size:17px;line-height:1.45;margin:0 0 4px;overflow-wrap:anywhere;font-weight:600}
.product-content .help{margin:0}
.stock-label{font-size:11px;color:#999fa7;margin:6px 0}
.product-buy{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin-top:14px}
.product-price{font-size:19px;color:#e35332;font-weight:750;white-space:normal;overflow-wrap:anywhere}

.quantity-control{display:flex;align-items:center;gap:2px;flex-shrink:0}
.quantity-control .btn{position:relative;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:50%;font-size:0;flex:0 0 36px;color:#242b35;background:var(--shop-accent,#ffd531)}
.quantity-control .btn::before{content:'+';font-size:25px;line-height:1}
.quantity-control .quantity-minus{background:#f1f2f5}
.quantity-control .quantity-minus::before{content:'−'}
.quantity-control .btn::after{content:'';position:absolute;inset:-4px}
.quantity-control input{width:47px;text-align:center;border:0;border-radius:0;background:transparent;min-height:36px;padding:3px 0;font-size:13px;box-shadow:none;appearance:textfield;-moz-appearance:textfield}
.quantity-control input::-webkit-inner-spin-button,.quantity-control input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.quantity-control .btn:disabled{background:#e4e6ea;color:#9ea3ad;cursor:not-allowed}

.shop-cart-bar{position:fixed;z-index:34;bottom:calc(var(--consumer-bottom) + 10px);left:max(16px,calc((100vw - 1052px)/2));right:max(16px,calc((100vw - 1052px)/2));min-height:60px;background:#29313e;color:#fff;border-radius:16px;display:flex;align-items:center;padding:6px 7px 6px 16px;box-shadow:0 5px 20px #14243b20;gap:12px}
.cart-open{position:relative;background:none;border:0;color:#fff;width:40px;min-height:44px;cursor:pointer;flex-shrink:0}
.cart-open .icon{width:29px;height:29px}
.cart-count{position:absolute;top:0;right:-1px;background:#f96d29;border-radius:10px;padding:0 4px;font-size:10px;line-height:17px;min-width:17px;color:white}
.cart-total{flex:1;min-width:0;line-height:1.4}
.cart-total small{font-size:10px;color:#bac0ca;display:block}
.cart-total strong{font-size:16px;font-weight:650;display:block;overflow-wrap:anywhere;line-height:1.2}
.checkout-button.btn{background:var(--shop-accent,#ffd531);border:0;color:#242728;font-weight:750;min-height:48px;border-radius:12px;padding:10px 19px;flex-shrink:0}
.checkout-button.btn:disabled{background:#d2d5db;color:#898f99}
.cart-line,.checkout-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;border-bottom:1px solid #eef0f2;font-size:14px;overflow-wrap:anywhere}
.cart-line>div:first-child,.checkout-line>div{min-width:0;flex:1}
.cart-line small,.checkout-line small{display:block;color:#9ba1a9;font-size:12px;margin-top:5px}
.checkout-address .consumer-scope{margin-bottom:18px}
.checkout-more summary{cursor:pointer;font-size:14px;min-height:24px}
.consumer-shell[data-surface="checkout"] .workspace{max-width:780px;padding-top:8px!important}
.consumer-shell .reference-price{font-size:14px}
.consumer-shell .settlement-rule{font-size:11px}

@media(max-width:680px){.consumer-header{height:56px;padding:0 16px;gap:14px}
.consumer-brand{font-size:17px}
.consumer-brand span{display:none}
.consumer-header .breadcrumb{font-size:14px}
.consumer-shell .workspace{padding:16px 14px calc(var(--consumer-bottom) + 20px)!important}
.consumer-shell h1{font-size:21px}
.rider-heading{margin-top:17px}
.rider-job-list{grid-template-columns:1fr;gap:13px}
.rider-job{padding:17px}
.rider-capacity{padding:10px 12px}
.rider-job-metrics strong{font-size:27px}
.rider-job-meta{font-size:10px}
.rider-heading>.btn{padding:5px 10px;min-height:36px}
.shop-shell[data-surface="shop"] .workspace{padding:0 0 calc(var(--consumer-bottom) + var(--cart-bar-height,72px) + 20px)!important}
.shop-top{padding:15px 14px 13px}
.shop-browser{grid-template-columns:82px minmax(0,1fr);border-radius:15px 15px 0 0}
.shop-categories{top:56px;max-height:calc(100dvh - 230px)}
.shop-categories button{padding:17px 10px;min-height:58px;font-size:12px}
.shop-products{padding:14px 12px}
.shop-product{gap:10px;padding:17px 0;align-items:flex-start}
.product-cover{width:78px;height:88px;border-radius:10px}
.product-cover .icon{width:32px;height:32px}
.product-cover span{font-size:8px}
.product-content h3{font-size:14px;line-height:1.5}
.product-content .help{font-size:11px}
.product-price{font-size:16px}
.product-buy{margin-top:9px;gap:5px}
.stock-label{font-size:10px}
.quantity-control .btn{width:30px;height:30px;min-height:30px;flex-basis:30px}
.quantity-control input{width:39px;font-size:12px;min-height:32px}
.quantity-control .btn::before{font-size:23px}
.quantity-control .btn::after{inset:-7px}
.shop-cart-bar{left:10px;right:10px;gap:9px;min-height:56px;padding-left:10px;border-radius:14px}
.cart-total strong{font-size:14px}
.checkout-button.btn{padding:10px 15px;font-size:14px}
.cart-total small{font-size:9px}
.consumer-shell[data-surface="checkout"] .workspace{padding:0 14px calc(var(--consumer-bottom) + 20px)!important}
.consumer-shell .form-grid{gap:16px}
.consumer-shell .field input,.consumer-shell .field select{font-size:16px}
.consumer-shell .field span{font-size:13px}
.consumer-shell .page-head{flex-wrap:wrap}
.consumer-shell .page-head h1{font-size:21px}
}

@media(max-width:370px){.shop-browser{grid-template-columns:72px minmax(0,1fr)}
.shop-products{padding-inline:10px}
.product-cover{width:64px;height:78px}
.product-content h3{font-size:13px}
.product-price{font-size:14px}
.quantity-control{gap:0}
.quantity-control input{width:34px}
.shop-cart-bar .cart-open{width:30px}
.cart-total strong{font-size:12px}
}

@media print{.consumer-header,.consumer-bottom,.shop-cart-bar{display:none!important}
.consumer-shell .workspace{padding:0!important}
}


/* V2.5.1: compact phone chrome and content-first shopping. */
.consumer-shell .workspace{overflow-wrap:anywhere}

.consumer-header{min-height:52px;height:auto;padding-block:4px}

.consumer-header .breadcrumb{min-width:0;line-height:1.3;overflow-wrap:anywhere}

.consumer-header .btn{min-width:44px;min-height:44px;flex-shrink:0}

.consumer-tab>span{display:block;max-width:100%;overflow-wrap:anywhere}

.consumer-tab .icon{flex-shrink:0;width:22px;height:22px}

.consumer-scope{line-height:1.4;font-size:12px;overflow-wrap:anywhere}

.shop-top{padding:10px 0 12px}

.shop-search{margin-top:8px;min-height:46px;padding:0 4px 0 12px;gap:6px}

.shop-search input{font-size:16px;min-height:44px}

.shop-search .btn{flex:0 0 auto;font-size:14px;min-height:44px;white-space:nowrap;padding:7px 12px}

.shop-browser.without-categories{grid-template-columns:minmax(0,1fr)}

.shop-categories{top:52px;max-height:calc(100dvh - var(--consumer-bottom) - var(--cart-bar-height,72px) - 76px)}

.shop-categories button{hyphens:auto}

.product-cover{overflow:hidden}

.product-price.price-pending{color:#697586;font-size:13px;font-weight:500}

.quantity-control{max-width:100%;gap:0}

.quantity-control .btn{width:44px;height:44px;min-height:44px;flex:0 0 44px;display:grid;place-items:center;background:transparent;border-radius:8px}

.quantity-control .btn::before{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-size:23px;background:var(--shop-accent,#ffd531)}

.quantity-control .btn::after{content:none}

.quantity-control .quantity-minus::before{background:#eef0f3}

.quantity-control .btn:disabled{background:transparent;opacity:1}

.quantity-control .btn:disabled::before{background:#e4e6ea;color:#9ea3ad}

.quantity-control input{min-height:44px;width:48px;max-width:48px;font-size:16px}

.shop-cart-bar{bottom:calc(var(--consumer-bottom) + 6px);border-radius:12px;padding:5px 6px 5px 10px;gap:8px}

.cart-open{width:44px;min-width:44px;min-height:44px;padding:4px;display:grid;place-items:center}

.cart-total small{font-size:11px;line-height:1.4}

.cart-total strong{font-size:15px;line-height:1.35}

.shop-cart-bar .checkout-button{font-size:14px;padding:8px 12px;min-height:44px;max-width:35%;white-space:normal}

.cart-line{flex-wrap:wrap;padding:12px 0;gap:6px 12px}

.cart-line>div:first-child{flex:1 1 140px}

.cart-line .quantity-control{margin-left:auto}

.personal-card{padding:18px;text-align:left;margin-bottom:12px;border-radius:14px}

.personal-identity{display:flex;align-items:center;gap:12px}

.personal-identity>div{min-width:0}

.personal-card .avatar{margin:0;width:46px;height:46px;flex-shrink:0;font-size:21px}

.personal-card h1{font-size:20px;overflow-wrap:anywhere}

.personal-card .help{margin:4px 0 0;font-size:12px}

.personal-card .consumer-scope{justify-content:flex-start;margin-top:14px}

.personal-vehicle{display:flex;gap:7px;align-items:center;font-size:13px;color:#666e78;margin:8px 0 0}

.personal-vehicle .icon{width:16px;height:16px;flex-shrink:0}

.personal-links{border-radius:14px}

.personal-links a{min-height:56px;padding:12px 16px;font-size:15px;gap:12px}

.personal-links .icon{width:20px;height:20px;flex-shrink:0}

.personal-links a span{min-width:0}

.personal-language{min-height:58px;border-radius:14px;background:#fff;padding:7px 14px;margin:12px 0;gap:10px;flex-wrap:wrap}

.personal-language>span{display:flex;align-items:center;gap:10px;font-size:14px}

.personal-language .icon{width:20px;height:20px}

.personal-language .language{width:auto;min-width:110px;max-width:170px;margin-left:auto}

.personal-scope-help{text-align:center;margin:12px 0;font-size:12px!important}

.personal-logout.btn{min-height:44px;font-size:14px;background:#fff;border-color:#e8eaed;color:#a34733}

.rider-heading{align-items:center;flex-wrap:wrap;gap:10px}

.rider-heading h1{min-width:0;flex:1;font-size:21px}

.rider-heading>.btn{min-height:44px;max-width:100%}

.rider-job-meta{flex-wrap:wrap;gap:5px 10px;overflow-wrap:anywhere}

.rider-capacity{flex-wrap:wrap;gap:6px 14px}

.rider-job-metrics strong{overflow-wrap:anywhere;font-size:clamp(21px,4.5vw,30px)}

.rider-task-actions{flex-wrap:wrap}

.rider-task-actions .btn{flex:1 1 120px}

@media(max-width:680px){
 .consumer-header{min-height:52px;height:auto;padding:4px 12px;gap:12px}

 .consumer-shell .workspace{padding:12px 12px calc(var(--consumer-bottom) + 18px)!important;min-height:calc(100dvh - 52px)}

 .shop-shell[data-surface="shop"] .workspace{padding:0 0 calc(var(--consumer-bottom) + var(--cart-bar-height,72px) + 20px)!important}

 .shop-top{padding:8px 12px 10px}

 .shop-categories{top:52px}

 .shop-products{padding:12px}

 .shop-product{padding:14px 0}

 .shop-product h3{font-size:15px}

 .product-content .help{font-size:12px}

 .stock-label{font-size:11px}

 .product-cover{width:72px;height:80px}

 .without-categories .product-cover{width:84px;height:92px}

 .product-buy{gap:4px;margin-top:6px}

 .product-price{font-size:17px}

 .product-price.price-pending{font-size:12px}

 .quantity-control .btn{width:44px;height:44px;min-height:44px;flex-basis:44px}

 .quantity-control input{width:44px;font-size:16px;min-height:44px}

 .cart-total strong{font-size:14px}

 .cart-total small{font-size:10px}

 .shop-cart-bar .cart-open{width:44px}

 .consumer-shell[data-surface="checkout"] .workspace{padding:12px 12px calc(var(--consumer-bottom) + 18px)!important}

 .checkout-address .consumer-scope{margin-bottom:12px}

 .consumer-shell .form-grid{gap:14px}

 .rider-job{padding:16px}

 .rider-heading{margin-top:12px}

 .consumer-empty{padding:36px 18px}

}

@media(max-width:370px){
 .shop-browser:not(.without-categories){grid-template-columns:68px minmax(0,1fr)}

 .shop-categories button{padding:14px 8px;font-size:12px}

 .shop-products{padding-inline:10px}

 .product-cover{width:58px;height:70px}

 .without-categories .product-cover{width:70px;height:80px}

 .product-buy{flex-direction:column;align-items:flex-start}

 .product-buy .quantity-control{align-self:flex-end}

 .cart-total strong{font-size:13px}

 .shop-cart-bar{left:6px;right:6px;gap:4px;padding-left:4px}

 .shop-cart-bar .checkout-button{padding:8px;font-size:13px}

}

@media print{.consumer-header,.consumer-bottom,.shop-cart-bar{display:none!important}
}

/* Real product photos stay within the existing compact catalog cards. */
.product-cover.has-image{padding:0;background:#fff}
.product-cover.has-image img{width:100%;height:100%;object-fit:contain;display:block}
.cart-line>.product-cover.compact,.checkout-line>.product-cover.compact{flex:0 0 48px;width:48px;height:48px;padding:0}
.cart-line>div:not(.product-cover):not(.quantity-control),.checkout-line>div:not(.product-cover){flex:1 1 0;min-width:0}
@media(max-width:480px){.cart-line>.product-cover.compact,.checkout-line>.product-cover.compact{flex-basis:40px;width:40px;height:40px}.cart-line .quantity-control{flex-shrink:0}}

/* Stable quantity controls: zero quantities stay mounted and hidden. */
.quantity-control [hidden],#cart-empty[hidden]{display:none!important}
