.orders-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;padding-top:24px;padding-bottom:60px}.account-side{width:auto}.profile{display:flex;align-items:center;gap:12px;padding:20px 14px}.avatar{width:46px;height:46px;border-radius:50%;background:#e5f1ff;color:#0a68ff;display:grid;place-items:center;font-size:25px}.profile small{display:block;color:#808089}.account-nav{background:#fff;border-radius:10px;padding:8px}.account-nav a,.account-nav span{display:block;padding:13px 14px;color:#777;text-decoration:none;border-radius:6px}.account-nav .active{background:#eaf3ff;color:#0a68ff;font-weight:600}.orders-main{width:100%;min-width:0;display:block}.heading-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.heading-line h1{font-size:25px;font-weight:600;margin:0 0 4px}.subtle{font-size:12px;color:#808089}.actions{display:flex;gap:8px;flex-wrap:wrap}.btn{background:#fff;color:#0a68ff;border:1px solid #bfdbff;border-radius:7px;padding:10px 14px;font:inherit;font-size:13px;cursor:pointer}.btn.primary{background:#0a68ff;border-color:#0a68ff;color:white}.btn:disabled{opacity:.4;cursor:default}.overview{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.metric{background:white;border:1px solid #ebedf3;padding:17px 20px;border-radius:10px}.metric small{color:#808089;font-size:12px}.metric b{display:block;font-size:23px;font-weight:600;margin-top:7px}.metric:last-child b{color:#0a68ff}.order-tools{background:#fff;border-radius:10px;padding:0 16px 16px;margin-bottom:18px}.tabs{display:flex;gap:22px;overflow:auto;border-bottom:1px solid #eee;margin-bottom:16px}.tab{border:0;border-bottom:2px solid transparent;background:transparent;padding:16px 2px;color:#777;white-space:nowrap;cursor:pointer;font:inherit;font-size:13px}.tab.on{border-bottom-color:#0a68ff;color:#0a68ff}.search-row{display:flex;gap:12px;align-items:center}.order-search{flex:1;min-width:130px;position:relative}.order-search input{background:#f6f7fb;border:1px solid #e9ebf0;border-radius:7px;padding:11px 13px;width:100%;font:inherit;font-size:13px}.search-row label{font-size:11px;color:#808089}.search-row input.date-field{display:block;padding:9px;border:1px solid #e6e8ee;border-radius:6px;color:#555;font:inherit;font-size:12px}.order-card{background:#fff;border:1px solid #eceef4;border-radius:10px;margin-bottom:16px;overflow:hidden}.order-card-top{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#fcfcfe;border-bottom:1px solid #f0f1f5;padding:14px 20px}.order-code{font-size:13px;font-weight:600}.order-date{font-size:11px;color:#808089;margin-top:4px}.state{background:#eaf7f0;color:#268252;border-radius:5px;padding:5px 9px;font-size:11px;white-space:nowrap}.state.returned{background:#f4eefc;color:#8861ad}.order-body{padding:18px 20px}.item-preview{display:flex;gap:15px;align-items:start}.item-picture{width:80px;height:80px;border:1px solid #f0f1f5;border-radius:8px;object-fit:contain;flex-shrink:0}.no-picture{display:grid;place-items:center;background:#f4f7fb;color:#8a9aad;font-size:26px}.item-copy{min-width:0;flex:1}.item-copy h2{font-size:14px;font-weight:400;line-height:1.6;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.item-copy small{color:#808089;font-size:12px}.item-cost{text-align:right;font-size:14px;white-space:nowrap}.item-cost small{display:block;color:#808089;margin-top:9px}.more-items{font-size:12px;color:#808089;margin:12px 0 0}.order-card-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f0f1f5;padding:14px 20px;gap:12px}.order-count{font-size:12px;color:#808089}.payment{text-align:right;font-size:12px}.payment strong{font-size:19px;color:#1a1a1a;font-weight:600;margin-left:8px}.card-bottom-right{display:flex;align-items:center;gap:18px}.order-pagination{display:flex;justify-content:space-between;align-items:center;padding:12px 0;font-size:12px;color:#808089}.order-empty{background:white;border-radius:10px;text-align:center;padding:60px 20px}.order-empty .icon{font-size:45px;color:#9cc4ff}.notice-local{font-size:11px;color:#808089;line-height:1.7;margin:14px 0}.import-dialog,.detail-dialog{border:0;border-radius:14px;padding:0;width:min(780px,94vw);color:#27272a;max-height:90vh;overflow:auto;box-shadow:0 12px 60px #1f385930}.detail-dialog{width:min(980px,96vw)}dialog::backdrop{background:#15243b66}.dialog-head{position:sticky;top:0;background:white;padding:20px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee;z-index:1}.dialog-head h2{margin:0;font-size:19px}.close{background:#f5f6fa;border:0;border-radius:50%;width:32px;height:32px;font-size:21px;cursor:pointer}.dialog-content{padding:22px 24px}.import-drop{background:#f5f9ff;border:1px dashed #97bff8;border-radius:10px;text-align:center;padding:28px 18px}.import-drop input{margin:15px 0;max-width:100%}.import-options{display:flex;gap:20px;margin:20px 0;font-size:13px}.import-summary{line-height:1.8;font-size:13px;background:#f7f8fc;padding:15px;border-radius:8px}.import-error{color:#b52d3a;background:#fff0f0;padding:12px;border-radius:8px;font-size:13px}.dialog-foot{padding:16px 24px;border-top:1px solid #eee;display:flex;justify-content:flex-end;gap:10px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-panel{border:1px solid #e9edf3;border-radius:9px;padding:18px}.detail-panel h3{font-size:13px;font-weight:600;margin-bottom:14px}.detail-panel dl{margin:0;font-size:12px;display:grid;grid-template-columns:100px 1fr;gap:10px}.detail-panel dt{color:#808089}.detail-panel dd{margin:0;overflow-wrap:anywhere}.detail-table{overflow:auto;margin-top:20px}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{background:#f6f7fb;padding:12px;font-weight:500;color:#777}td{padding:13px 12px;border-bottom:1px solid #eee}td:not(:first-child),th:not(:first-child){text-align:right;white-space:nowrap}.totals{margin:20px 0 0 auto;max-width:320px;font-size:13px}.totals div{display:flex;justify-content:space-between;padding:7px}.totals .grand{border-top:1px solid #ddd;color:#0a68ff;font-size:18px;font-weight:600;margin-top:8px;padding-top:15px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#253c55;color:white;border-radius:7px;padding:12px 18px;z-index:99;font-size:13px}.shortcuts a{display:flex;align-items:center;gap:5px;color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #a4c9ff;outline-offset:2px}@media(max-width:900px){.orders-layout{grid-template-columns:1fr}.account-side{display:none}.search-row{flex-wrap:wrap}.order-search{flex-basis:100%}.heading-line{align-items:start}.card-bottom-right{gap:8px}.payment strong{font-size:17px}}@media(max-width:600px){.heading-line{flex-direction:column}.actions{width:100%}.actions .btn{flex:1}.metric{padding:12px}.metric b{font-size:18px}.overview{gap:7px}.tabs{gap:17px}.order-card-top,.order-body,.order-card-bottom{padding:14px}.order-code{font-size:11px}.item-picture{width:65px;height:65px}.item-copy h2{font-size:12px}.item-cost{font-size:12px}.order-card-bottom{align-items:end}.card-bottom-right{flex-direction:column;align-items:end}.detail-grid{grid-template-columns:1fr}.dialog-content{padding:16px}.dialog-head{padding:16px}.import-options{flex-direction:column;gap:10px}}

.shortcuts a:first-child{color:#0a68ff}.shortcuts a:hover{color:#0a68ff}.shortcuts a{border-radius:5px;padding:4px}@media(max-width:760px){.header-actions{display:block;width:100%}.shortcuts{justify-content:flex-end;gap:24px;height:32px}.address{display:none}}@media(max-width:600px){.overview{grid-template-columns:1fr 1fr}.metric:last-child{grid-column:1/-1}.metric:last-child b{font-size:22px}.order-card-top{align-items:start}.state{font-size:10px;white-space:normal;max-width:105px;text-align:right}}

/* Align date inputs, search and reset on one shared baseline. */
.search-row{align-items:flex-end}.search-row .order-search{align-self:flex-end}.search-row input.date-field,.search-row .order-search input,.search-row>#clearFilters{height:42px}.search-row label{display:flex;flex-direction:column;gap:5px;line-height:16px}.item-picture{width:88px;height:88px;padding:4px;background:white;object-fit:contain}.detail-panel{background:#fff}@media(max-width:600px){.item-picture{width:72px;height:72px}.search-row{gap:8px}.search-row label{flex:1;min-width:100px}.search-row input.date-field{width:100%;min-width:0}}

/* Compact orders workspace: intentionally scoped to the order page. */
.orders-page .container{width:calc(100% - 96px);max-width:1760px;padding-left:0;padding-right:0}
.orders-page .announcement,.orders-page .trust,.orders-page .hot-words,.orders-page .address{display:none}
.orders-page .header-main{align-items:center;padding-top:14px;padding-bottom:14px;gap:32px}
.orders-page header{border-bottom:1px solid #e9edf5}
.orders-page .orders-layout{grid-template-columns:176px minmax(0,1fr);gap:24px;padding-top:24px}
.orders-page .profile{padding:10px 4px 20px;gap:10px}.orders-page .avatar{width:38px;height:38px;font-size:22px}.orders-page .profile strong{font-size:13px}.orders-page .account-nav a{padding:12px 10px}
.orders-toolbar{background:white;border:1px solid #eceef4;border-radius:12px;padding:0 20px;margin-bottom:15px}
.orders-toolbar .heading-line{padding:19px 0 0;margin:0;align-items:center}
.orders-toolbar .heading-line>div{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.orders-toolbar .heading-line h1{font-size:23px;margin:0;line-height:30px}
.summary-inline{display:flex;align-items:center;gap:0;margin:0}.summary-inline .metric{border:0;border-radius:0;padding:0 16px;background:none;border-left:1px solid #e9edf3;display:flex;align-items:baseline;gap:7px}
.summary-inline .metric small{font-size:11px;white-space:nowrap}.summary-inline .metric b{font-size:14px;margin:0;white-space:nowrap}.summary-inline .metric:last-child b{font-size:16px}
.orders-toolbar .order-tools{border-radius:0;padding:0 0 17px;margin:0}
.orders-toolbar .tabs{margin-top:7px;margin-bottom:12px;gap:26px}.orders-toolbar .tab{padding-top:13px;padding-bottom:12px}
.orders-toolbar .search-row{gap:12px}.orders-toolbar .search-row label{font-size:10px;gap:3px}.orders-toolbar .search-row input.date-field{min-width:150px}
.orders-toolbar .order-search{max-width:none}.tools-toggle{display:flex;align-items:center;gap:8px;white-space:nowrap;background:#f8faff;border-color:#dce6f5;color:#436080;font-size:12px;padding:9px 13px}
.orders-page #recordText{margin:10px 0 12px;font-size:11px}.orders-page .item-copy h2{max-width:90ch}
.tools-drawer{margin:0 0 0 auto;inset:0 0 0 auto;height:100dvh;max-height:100dvh;width:380px;max-width:94vw;border:0;border-left:1px solid #e5eaf2;border-radius:16px 0 0 16px;padding:0;color:#263449;box-shadow:-16px 0 60px #18345326;overflow:auto}
.tools-drawer::backdrop{background:#14264055;backdrop-filter:blur(2px)}.drawer-heading{padding:26px 24px 22px;display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid #edf0f5}.drawer-heading h2{font-size:19px;margin:0 0 6px}.drawer-heading p{font-size:12px;color:#8590a1;margin:0}.drawer-actions{padding:18px;display:grid;gap:10px}
.drawer-action{border:1px solid #e5eaf2;border-radius:10px;background:white;padding:16px;display:flex;align-items:center;gap:14px;text-align:left;cursor:pointer;color:#34465c;font:inherit;width:100%}.drawer-action:hover{background:#f5f9ff;border-color:#b8d4ff}.drawer-action:disabled{opacity:.45;cursor:default}.drawer-action-copy strong{font-size:13px;display:block;margin-bottom:4px;font-weight:600}.drawer-action-copy small{font-size:11px;color:#8a95a6;line-height:1.6}.drawer-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;background:#edf5ff;color:#0a68ff;border-radius:10px;font-size:23px}.drawer-action#openImport{background:#f2f7ff;border-color:#d4e5ff}.drawer-footer{padding:12px 26px 24px;color:#95a0af;font-size:11px}
@media(max-width:1300px){.orders-page .container{width:calc(100% - 48px)}.orders-page .orders-layout{grid-template-columns:156px minmax(0,1fr);gap:20px}.orders-toolbar .heading-line>div{gap:12px}.summary-inline .metric{padding:0 10px}.summary-inline .metric:nth-child(2){display:none}}
@media(max-width:1050px){.orders-page .orders-layout{grid-template-columns:1fr}.orders-page .account-side{display:none}.summary-inline .metric:first-child{border-left:0;padding-left:0}.orders-toolbar .heading-line>div{display:block}.summary-inline{margin-top:7px}.orders-toolbar .heading-line{align-items:flex-start}.orders-toolbar .search-row input.date-field{min-width:0}}
@media(max-width:760px){.orders-page .container{width:calc(100% - 24px)}.orders-page .header-main{gap:12px;padding-top:10px;padding-bottom:10px}.orders-page .header-actions{width:100%;display:block}.orders-page .shortcuts{height:28px}.orders-page .orders-layout{padding-top:12px}.orders-toolbar{padding:0 13px;border-radius:10px}.orders-toolbar .heading-line{flex-direction:row;gap:8px;padding-top:15px}.orders-toolbar .heading-line h1{font-size:20px}.summary-inline{display:flex}.summary-inline .metric{padding:0 8px}.summary-inline .metric:last-child{grid-column:auto}.summary-inline .metric:last-child b{font-size:13px}.summary-inline .metric small{font-size:10px}.tools-toggle{font-size:0;padding:8px;width:36px;height:36px;justify-content:center}.tools-toggle:before{content:'☷';font-size:20px}.orders-toolbar .tabs{gap:18px}.orders-toolbar .search-row .order-search{flex-basis:100%}.orders-toolbar .search-row label{flex:1}.orders-toolbar .search-row input.date-field{width:100%}}

/* Phone layout, 320–760px: keep data readable rather than shrinking desktop rows. */
@media(max-width:760px){
 .orders-page{font-size:14px;-webkit-text-size-adjust:100%}
 .orders-page .header-main{display:grid;grid-template-columns:56px minmax(0,1fr) 44px;gap:8px 12px;padding:10px 0 12px}
 .orders-page .logo{grid-column:1;grid-row:1;width:56px}.orders-page .logo img{width:52px}.orders-page .logo strong{font-size:10px}
 .orders-page .search-area{grid-column:1/-1;grid-row:2;min-width:0;width:100%;padding:0}
 .orders-page .search{height:42px}.orders-page .search input{font-size:16px}.orders-page .search button{font-size:12px;min-height:40px}
 .orders-page .header-actions{grid-column:3;grid-row:1;width:44px;min-width:0}.orders-page .shortcuts{height:44px;display:flex;justify-content:center;gap:0}
 .orders-page .shortcuts>a:first-child,.orders-page .shortcuts>span{display:none}.orders-page .shortcuts>a[href="orders.html"]{display:flex;align-items:center;justify-content:center;font-size:0;padding:10px;width:44px;height:44px;background:#edf5ff;border-radius:50%}.orders-page .shortcuts img{width:24px;height:24px}
 .orders-toolbar .heading-line{align-items:flex-start;position:relative;min-width:0}.orders-toolbar .heading-line>div{min-width:0;flex:1;padding-right:6px}
 .orders-toolbar .heading-line h1{font-size:21px;line-height:1.4}.orders-toolbar .tools-toggle{flex-shrink:0;width:44px;height:44px;min-height:44px}
 .summary-inline{display:flex;flex-wrap:wrap;gap:5px 10px;min-width:0;margin-top:8px}.summary-inline .metric{padding:0!important;border:0;display:flex;align-items:baseline;gap:5px;max-width:100%}.summary-inline .metric:last-child{flex-basis:100%;flex-wrap:wrap}.summary-inline .metric b{font-size:13px;white-space:normal;overflow-wrap:anywhere}.summary-inline .metric:last-child b{font-size:15px;line-height:1.5}.summary-inline .metric small{font-size:11px;white-space:normal}
 .orders-toolbar .tabs{gap:20px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.orders-toolbar .tabs::-webkit-scrollbar{display:none}.orders-toolbar .tab{min-height:44px;font-size:12px;flex-shrink:0}
 .orders-toolbar .search-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px;align-items:end}.orders-toolbar .order-search{grid-column:1/4;grid-row:1;min-width:0}.orders-toolbar .search-row label{grid-column:span 2;grid-row:2;display:flex;flex-direction:column;gap:5px;min-width:0;width:100%;font-size:11px}.orders-toolbar .search-row input.date-field{font-size:14px;min-width:0;max-width:100%;width:100%;height:44px;box-sizing:border-box}.orders-toolbar .search-row input[type=search]{font-size:16px;height:44px}.orders-toolbar #clearFilters{grid-column:4;grid-row:1;justify-self:stretch;min-width:0;width:100%;height:44px;min-height:44px;padding:8px 4px;font-size:12px;white-space:nowrap}
 .order-card{border-radius:12px;margin-bottom:12px}.order-card-top{padding:13px;gap:8px;align-items:flex-start}.order-card-top>div{min-width:0;flex:1}.order-code{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.order-date{font-size:11px;line-height:1.5}.state{max-width:110px;font-size:10px;white-space:normal;flex-shrink:0;padding:5px 7px}
 .order-body{padding:14px 13px}.item-preview{display:grid;grid-template-columns:76px minmax(0,1fr);gap:6px 12px;align-items:start}.item-picture{width:76px;height:76px;grid-column:1;grid-row:1/3;padding:4px}.item-copy{grid-column:2;grid-row:1;min-width:0}.item-copy h2{font-size:13px;line-height:1.6;-webkit-line-clamp:2;margin-bottom:5px}.item-copy small{font-size:11px;display:block;overflow-wrap:anywhere}.item-cost{grid-column:2;grid-row:2;display:flex;justify-content:space-between;gap:8px;align-items:baseline;text-align:left;font-size:13px;white-space:normal;overflow-wrap:anywhere}.item-cost small{margin:0;white-space:nowrap;font-size:11px}.more-items{font-size:11px;margin-top:12px}
 .order-card-bottom{padding:13px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}.order-count{grid-column:1;grid-row:1;font-size:11px;align-self:start;padding-top:2px;line-height:1.6}.card-bottom-right{display:contents}.card-bottom-right .payment{grid-column:2;grid-row:1}.card-bottom-right .btn{grid-column:2;grid-row:2;justify-self:end;min-width:112px;text-align:center;white-space:nowrap}.payment{font-size:11px;min-width:0}.payment strong{display:block;font-size:18px;margin:3px 0 0;line-height:1.4;overflow-wrap:anywhere}.card-bottom-right .btn{min-height:44px;font-size:12px;padding:9px 13px}
 .order-pagination .btn{min-width:72px;min-height:44px}.tools-drawer{width:min(380px,100vw);max-width:100vw;height:100vh;height:100dvh;border-radius:14px 0 0 14px;padding-bottom:env(safe-area-inset-bottom,0px)}.drawer-heading{padding:22px 18px 18px}.drawer-actions{padding:14px}.drawer-action{min-height:76px;padding:14px}.drawer-heading .close,.dialog-head .close{width:44px;height:44px;flex-shrink:0}
 .import-dialog,.detail-dialog{width:calc(100% - 16px);max-width:560px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:auto;border-radius:12px}.dialog-head{padding:13px 14px;gap:10px}.dialog-head h2{font-size:15px;line-height:1.5;overflow-wrap:anywhere;min-width:0}.dialog-content{padding:14px}.detail-grid{grid-template-columns:minmax(0,1fr);gap:12px}.detail-panel{padding:14px;min-width:0}.detail-panel dl{grid-template-columns:85px minmax(0,1fr);gap:9px;font-size:12px}.detail-table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.detail-table table{min-width:560px}.detail-table td:first-child{min-width:240px;max-width:320px}.totals{width:100%;max-width:320px}.totals .grand{font-size:16px;gap:12px}.import-drop{padding:20px 12px}.import-drop input{font-size:13px;width:100%}.import-options label{line-height:1.7}.dialog-foot{position:sticky;bottom:0;background:white;padding:12px 14px;padding-bottom:max(12px,env(safe-area-inset-bottom));gap:10px}.dialog-foot .btn{min-height:44px}.toast{max-width:calc(100vw - 24px);width:max-content;white-space:normal;bottom:max(18px,env(safe-area-inset-bottom));font-size:12px}
}
@media(max-width:360px){.orders-page .container{width:calc(100% - 16px)}.orders-toolbar{padding:0 10px}.state{max-width:92px}.item-preview{grid-template-columns:64px minmax(0,1fr);column-gap:10px}.item-picture{width:64px;height:64px}.payment strong{font-size:16px}.order-card-bottom{column-gap:5px}}

/* Vietnamese calendar independent of system/browser locale. */
.date-field{cursor:pointer;background:white;min-height:44px;padding-right:28px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364758b' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4m10-4v4M3 11h18'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center}.date-field::placeholder{color:#808b9c;font-size:12px}.vi-calendar{width:330px;max-width:calc(100vw - 24px);padding:16px;border:1px solid #e5eaf2;border-radius:14px;color:#263449;box-sizing:border-box}.vi-calendar::backdrop{background:#14264055}.calendar-heading,.calendar-nav,.calendar-foot{display:flex;align-items:center;gap:8px;justify-content:space-between}.calendar-heading h2{font-size:17px;margin:0}.vi-calendar button{font:inherit;border:0;background:transparent;cursor:pointer;color:inherit;min-width:36px;min-height:40px;border-radius:7px}.vi-calendar button:hover{background:#eaf3ff}.vi-calendar button:focus-visible,.date-field:focus-visible{outline:2px solid #0a68ff;outline-offset:2px}.calendar-nav{margin:12px 0}.calendar-nav select,.calendar-nav input{font:inherit;font-size:14px;min-height:40px;border:1px solid #e6e8ee;border-radius:6px;min-width:0;background:white;color:inherit;padding:4px}.calendar-nav input{width:76px}.calendar-week,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}.calendar-week{font-size:11px;color:#808089;margin-bottom:6px}.calendar-days button{min-width:0;font-size:13px}.calendar-days button[aria-pressed=true]{background:#0a68ff;color:white}.calendar-foot{border-top:1px solid #edf0f5;margin-top:12px;padding-top:8px}.calendar-foot button{font-size:13px;color:#0a68ff}

.track-link { text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; }
@media (max-width: 760px) {
  .order-card-bottom .track-link { grid-column: 1; grid-row: 2; justify-self: start; min-height: 44px; padding-inline: 9px; }
}

/* Shared mobile storefront and order layout. */
@media (max-width: 760px) {
  body:not(.orders-page) .header-main {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
  }
  body:not(.orders-page) .search-area { padding: 0; }
  body:not(.orders-page) .search { height: 44px; }
  body:not(.orders-page) .search input { font-size: 16px; }
  body:not(.orders-page) .search > span { margin: 0 8px; }
  body:not(.orders-page) .search button { padding: 0 8px; white-space: nowrap; }
  body:not(.orders-page) .hot-words { display: none; }
  body:not(.orders-page) .header-actions { grid-column: 1 / -1; width: 100%; }
  body:not(.orders-page) .shortcuts {
    justify-content: space-around;
    gap: 8px;
    height: 40px;
  }
  body:not(.orders-page) .shortcuts a,
  body:not(.orders-page) .shortcuts > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    font-size: 12px;
    white-space: nowrap;
  }
  body:not(.orders-page) .trust { overflow: hidden; padding: 8px 0; }
  body:not(.orders-page) .trust .container {
    width: 100%;
    max-width: 100%;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  body:not(.orders-page) .trust .container::-webkit-scrollbar { display: none; }
  body:not(.orders-page) .trust strong,
  body:not(.orders-page) .trust span { flex: 0 0 auto; white-space: nowrap; font-size: 11px; }
  body:not(.orders-page) .trust img { flex: 0 0 20px; }
  body:not(.orders-page) .category-grid {
    grid-template-columns: repeat(5, minmax(100px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }
  body:not(.orders-page) .category-grid article { padding: 10px 6px; scroll-snap-align: start; }
  body:not(.orders-page) .category-grid img { width: 68px; height: 68px; }
  body:not(.orders-page) .category-grid h3 { font-size: 11px; line-height: 16px; min-height: 32px; }
  body:not(.orders-page) .category-grid small { font-size: 9px; }
  body:not(.orders-page) .quick-links img { width: 38px; height: 38px; }
  body:not(.orders-page) .quick-links { gap: 12px 6px; }
  .orders-page .logo { width: 64px; }
  .orders-page .logo strong { white-space: nowrap; font-size: 10px; }
  .orders-page .header-main { grid-template-columns: 64px minmax(0, 1fr) 44px; }
  .orders-toolbar .search-row input[type=search] { font-size: 16px; }
  .orders-page .order-card-bottom {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px 8px;
    padding: 12px 13px;
  }
  .orders-page .order-count { grid-column: 1; grid-row: 1; align-self: center; padding: 0; }
  .orders-page .card-bottom-right .payment { grid-column: 2 / 4; grid-row: 1; }
  .orders-page .card-bottom-right .btn { grid-column: 3; grid-row: 2; min-width: 0; padding: 9px 12px; }
  .orders-page .order-card-bottom .track-link { grid-column: 2; grid-row: 2; justify-self: end; }
}
