.zx-merchant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.zx-merchant-card{display:flex;align-items:flex-start;gap:20px;padding:25px;border:1px solid var(--line);border-radius:8px;background:#fff}.zx-store-emblem{width:58px;height:58px;flex-shrink:0;background:var(--line);border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;justify-content:center;font:600 24px var(--font-ui);color:var(--muted)}.zx-merchant-main{min-width:0;flex:1}.zx-merchant-main h3{margin:15px 0 7px;font-size:19px}.zx-merchant-main>p{color:var(--muted);font-size:12px;line-height:1.8;margin:5px 0 18px}.zx-mini-metrics{display:flex;gap:24px;padding:15px 0;border-top:1px solid var(--line);margin-bottom:12px}.zx-mini-metrics span{font-size:12px;color:var(--muted);min-width:0}.zx-mini-metrics strong{display:block;font:600 17px var(--font-ui);font-variant-numeric:tabular-nums;color:var(--brand);margin-bottom:5px}.zx-market-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 34px;margin:8px 0 26px;border:1px solid var(--line);border-radius:8px;background:var(--brand-soft);position:relative;overflow:hidden}.zx-market-intro h2{font:600 22px var(--font-ui);margin:12px 0;color:var(--ink)}.zx-market-intro p{color:var(--muted);font-size:12px;line-height:1.7;margin:0;max-width:470px}.zx-market-intro .eyebrow{font-size:12px;letter-spacing:2px}.zx-store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.zx-store-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:8px}.zx-store-cover{padding:22px;height:135px;position:relative;background:var(--surface-subtle)}.zx-store-cover>.zx-store-emblem{position:absolute;bottom:-17px;left:22px;background:var(--paper)}.zx-store-cover>span{position:absolute;right:18px;top:18px;color:var(--muted);font-size:12px;letter-spacing:2px}.zx-store-body{padding:28px 22px 22px}.zx-store-body h3{font-size:19px;margin:5px 0 8px}.zx-store-body>p{font-size:12px;color:var(--muted);line-height:1.7;margin:0 0 15px}.zx-store-tags{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.zx-store-tags span{padding:4px 8px;font-size:12px;color:var(--muted);border-radius:6px;background:var(--line)}.zx-store-body .zx-store-delivery{font-size:12px;margin:15px 0 20px;color:var(--muted)}.zx-store-subtitle{font-size:13px;line-height:1.8;color:var(--muted)}.zx-offer-list{display:grid;gap:14px}.zx-offer{padding:18px;border:1px solid var(--line);border-radius:8px;display:flex;gap:16px;align-items:flex-start;background:#fff}.zx-offer-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:10px;background:var(--line);color:var(--muted);font-family:var(--font-ui);font-variant-numeric:tabular-nums}.zx-offer>div:nth-child(2){flex:1;min-width:0}.zx-offer h3{margin:8px 0;font-size:15px}.zx-offer p{color:var(--muted);line-height:1.7;font-size:12px;margin:6px 0 11px}.zx-offer strong{color:var(--brand);font-size:14px}.zx-offer small{display:block;margin-top:9px;color:var(--muted);font-size:12px}.zx-offer .btn{align-self:center}.zx-detail-tabs{display:flex;gap:6px;overflow:auto;white-space:nowrap;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:20px}.zx-detail-tabs .btn{font-size:12px;flex-shrink:0;border-color:transparent;padding:8px 13px}.zx-detail-tabs .selected{background:var(--brand-soft);border-color:var(--brand-soft);color:var(--brand)}.zx-checkout-header{background:var(--line);border-radius:8px;padding:18px;margin-bottom:20px}.zx-checkout-header p{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0 0}.zx-order-status{display:flex;gap:12px;align-items:center;padding:15px 0}.zx-order-status>span:last-child{font-size:12px;color:var(--muted)}.zx-portal-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.zx-merchants .zx-info dd a{word-break:break-all}.zx-merchants .form-note{line-height:1.8}.zx-line-card legend{font-size:13px;font-weight:600;color:var(--brand);padding:0 6px}
@media(max-width:1150px){.zx-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.zx-merchant-grid{grid-template-columns:1fr}}
@media(max-width:650px){.zx-store-grid{grid-template-columns:1fr}.zx-merchant-card{padding:20px;gap:14px}.zx-merchant-card>.zx-store-emblem{width:43px;height:43px;font-size:22px}.zx-mini-metrics{gap:15px;flex-wrap:wrap}.zx-mini-metrics strong{font-size:15px}.zx-market-intro{padding:24px;align-items:flex-start;flex-direction:column}.zx-market-intro h2{font-size:25px}.zx-market-intro .btn{align-self:flex-start}.zx-store-cover{height:110px}.zx-offer{gap:10px;padding:14px;flex-wrap:wrap}.zx-offer-icon{width:34px;height:34px}.zx-offer>.btn{margin-left:44px}.zx-portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.zx-detail-tabs{margin-left:-5px;margin-right:-5px}.zx-detail-tabs .btn{padding:7px 10px}}
.zx-market-search{display:flex;align-items:flex-end;gap:12px;margin:0 0 24px}.zx-market-search .field{flex:1;margin:0;max-width:500px}.zx-market-search>.btn{margin-bottom:1px;min-height:42px}@media(max-width:650px){.zx-market-search{gap:8px}.zx-market-search>.btn{flex-shrink:0;font-size:12px;padding:10px 14px}}
.zx-item-thumb{width:44px;height:44px;object-fit:contain;float:left;margin-right:12px;border-radius:8px;background:var(--surface-subtle);border:1px solid var(--line)}.zx-offer-thumb{width:68px;height:68px;object-fit:contain;border-radius:8px;background:var(--surface-subtle);border:1px solid var(--line);flex-shrink:0}.zx-item-editor-image{display:block;max-width:220px;max-height:180px;object-fit:contain;margin:0 auto 18px;border-radius:8px;background:var(--surface-subtle)}.zx-guide-reply{white-space:pre-wrap;line-height:1.9;font-size:13px;color:var(--muted)}.zx-line-tools{display:flex;justify-content:flex-end;margin-bottom:8px}

/* One continuous directory: the same rows reflow on smaller screens. */
.zx-directory{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.zx-merchant-directory{--zx-directory-columns:minmax(160px,1.5fr) minmax(80px,.8fr) 58px minmax(85px,.8fr) minmax(85px,.8fr) 64px minmax(135px,1.3fr)}
.zx-store-directory{--zx-directory-columns:minmax(150px,1.2fr) minmax(120px,1fr) minmax(110px,.9fr) minmax(140px,1fr) 96px}
.zx-directory-head,.zx-directory-row{display:grid;grid-template-columns:var(--zx-directory-columns);gap:14px;align-items:center;padding:18px}
.zx-directory-head{background:var(--surface-subtle);color:var(--muted);font-size:12px;padding-top:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.zx-directory-list{list-style:none;margin:0;padding:0}
.zx-directory-row{position:relative;font-size:12px;line-height:1.7;border-bottom:1px solid var(--line)}
.zx-directory-row:last-child{border-bottom:0}
.zx-directory-row>div{min-width:0;overflow-wrap:anywhere}
.zx-directory-identity{display:flex;gap:12px;align-items:center}
.zx-directory-identity>div{min-width:0}
.zx-directory-identity .zx-store-emblem{width:40px;height:40px;border-radius:10px;font-size:22px}
.zx-directory-identity h3{font-size:14px;line-height:1.6;margin:0;color:var(--ink)}
.zx-directory-identity small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.zx-directory-money{font-variant-numeric:tabular-nums;color:var(--brand);font-weight:600}
.zx-directory-address,.zx-directory-delivery{color:var(--muted)}
.zx-directory-delivery>span{display:block}
.zx-directory-row .zx-store-tags{margin:0;gap:5px}
.zx-directory-row .zx-store-tags span{padding:3px 7px;line-height:1.6}
.zx-directory-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.zx-directory-actions .btn{font-size:12px;min-height:34px;padding:7px 12px;white-space:normal;line-height:1.6;max-width:100%}
.zx-directory-row .zx-directory-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;background:transparent}
@media(max-width:1150px){
 .zx-directory-head{display:none}
 .zx-directory-row .zx-directory-label{position:static;width:auto;height:auto;padding:0;margin:0 0 3px;overflow:visible;clip:auto;white-space:normal;display:block;color:var(--muted);font-size:12px;font-weight:400;background:transparent}
 .zx-merchant-directory .zx-directory-row{grid-template-columns:repeat(3,minmax(0,1fr))}
 .zx-merchant-directory .zx-directory-identity,.zx-directory-contact,.zx-merchant-directory .zx-directory-actions{grid-column:1/-1}
 .zx-merchant-directory .zx-directory-identity{padding-right:85px}
 .zx-directory-status{position:absolute;right:18px;top:20px}
 .zx-store-directory .zx-directory-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 110px}
 .zx-store-directory .zx-directory-identity,.zx-directory-address{grid-column:1/3}
 .zx-store-directory .zx-directory-actions{grid-column:3;grid-row:1/4;justify-content:flex-end}
 .zx-directory-row .zx-store-tags .zx-directory-label{flex-basis:100%;margin-bottom:0}
}
@media(max-width:650px){
 .zx-directory-row{gap:12px;padding:18px 16px}
 .zx-directory-actions .btn{min-height:44px;padding:10px 13px}
 .zx-store-directory .zx-directory-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .zx-store-directory .zx-directory-identity,.zx-directory-address,.zx-store-directory .zx-store-tags,.zx-directory-delivery{grid-column:1/-1}
 .zx-store-directory .zx-directory-actions{grid-column:1/-1;grid-row:auto;justify-content:flex-end}
 .zx-directory-status{right:16px;top:20px}
}

/* Merchant product review keeps its objects and decision controls reachable. */
.zx-review-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0;background:#fff;position:sticky;top:0;z-index:2;border-bottom:1px solid var(--line);margin-bottom:12px}
.zx-review-select-all{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--brand);min-height:38px;cursor:pointer}
.zx-review-select-all input,.zx-review-checkbox input{width:18px;height:18px;accent-color:var(--ink);cursor:pointer}
.zx-review-toolbar [data-merchant-review-count]{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.zx-review-actions{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap}
.zx-review-actions .zx-review-reject{color:#a24237}
.zx-review-toolbar>.form-note,.zx-review-toolbar>[data-merchant-review-error]{flex-basis:100%;margin:0}
.zx-review-toolbar>[data-merchant-review-error]:empty{display:none}
.zx-review-checkbox{width:40px;text-align:center}
.zx-merchant-review-surface .table td,.zx-merchant-review-list .table td{overflow-wrap:anywhere}
#modal[open]:has(.zx-merchant-review-surface),#modal[open]:has(.zx-merchant-review-list){display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}
#modal:has(.zx-merchant-review-surface)>.modal-head,#modal:has(.zx-merchant-review-list)>.modal-head{flex-shrink:0}
#modal:has(.zx-merchant-review-surface)>#zx-business-form,#modal:has(.zx-merchant-review-list)>#zx-business-form{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}
#modal:has(.zx-merchant-review-surface) #zx-business-form>.form-body,#modal:has(.zx-merchant-review-list) #zx-business-form>.form-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:20px;-webkit-overflow-scrolling:touch}
#modal:has(.zx-merchant-review-surface) .modal-footer,#modal:has(.zx-merchant-review-list) .modal-footer{flex-shrink:0}
#modal:has(.zx-merchant-review-list) #zx-business-form>.zx-detail-tabs{flex-shrink:0;margin:0;padding:12px 24px;background:#fff}
@media(min-width:801px){
 #modal[open]:has(.zx-merchant-review-surface),#modal[open]:has(.zx-merchant-review-list){width:min(960px,calc(100vw - 48px));max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);height:min(760px,calc(100vh - 48px));height:min(760px,calc(100dvh - 48px))}
}
@media(max-width:650px){
 .zx-review-toolbar{gap:8px;padding:10px 0}.zx-review-actions{width:100%;margin-left:0}.zx-review-actions .btn{min-height:42px;flex:1}.zx-review-checkbox{padding-left:8px!important;padding-right:8px!important}.zx-merchant-review-list .table{min-width:590px}
 #modal:has(.zx-merchant-review-list) #zx-business-form>.zx-detail-tabs{padding:10px 16px}
}
.zx-review-mode{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:14px 16px;margin-bottom:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-subtle)}
.zx-review-mode>div{min-width:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.zx-review-mode span{font-size:12px;color:var(--muted)}.zx-review-mode strong{font-size:13px;color:var(--brand)}.zx-review-mode>.btn{flex-shrink:0}
.zx-review-feedback{display:block;color:#8a5e43;line-height:1.6;margin-top:7px;max-width:260px;white-space:normal;overflow-wrap:anywhere}
#modal:has(.zx-merchant-review-surface) .modal-footer .zx-review-reject{background:#a44539;border-color:#a44539;color:white}
@media(max-width:650px){.zx-review-mode{gap:8px;padding:12px}.zx-review-mode>div{gap:5px;align-items:flex-start;flex-direction:column}.zx-review-mode>.btn{min-height:42px;padding:9px 12px}}

/* Ratings belong to fulfilled employee orders; no default score is selected. */
.zx-rating-choice{min-width:0;border:0;padding:0;margin:22px 0}.zx-rating-choice legend{font-size:13px;color:var(--muted);margin-bottom:12px}.zx-rating-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.zx-rating-options>label{position:relative;display:block;min-width:0;cursor:pointer}.zx-rating-options input{position:absolute;opacity:0;width:1px;height:1px}.zx-rating-options label>span{display:flex;flex-direction:column;align-items:center;gap:5px;min-height:92px;border:1px solid var(--line);border-radius:9px;padding:10px 5px;color:var(--muted);background:var(--surface-subtle)}.zx-rating-options strong{font-size:27px;line-height:1;color:var(--muted)}.zx-rating-options small{font-size:12px;text-align:center;overflow-wrap:anywhere}.zx-rating-options input:checked+span{border-color:var(--brand);background:var(--brand-soft);color:var(--ink)}.zx-rating-options input:checked+span strong{color:#a27931}.zx-rating-options input:focus-visible+span{outline:2px solid var(--muted);outline-offset:3px}.zx-rating-choice:has(input[aria-invalid=true]) .zx-rating-options{border-radius:9px;outline:1px solid #bd6858;outline-offset:3px}.zx-rating-choice .field-error{margin-top:10px}.zx-order-rating{border-top:1px solid var(--line);padding-top:17px;margin-top:22px}.zx-order-rating h3{margin-bottom:9px}.zx-rating-stars{color:#94702f;font-size:17px}.zx-rating-stars strong{font-size:12px;color:var(--muted);margin-left:7px}.zx-rating-comment{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.85;margin:10px 0}.zx-order-rating>small{font-size:12px;color:var(--muted)}@media(max-width:600px){.zx-rating-options{gap:6px}.zx-rating-options label>span{padding:9px 3px;min-height:86px}.zx-rating-options small{font-size:12px}.zx-rating-options strong{font-size:24px}}
#modal:has(.zx-rating-choice)[open]{display:flex;flex-direction:column;max-height:85dvh;overflow:hidden}#modal:has(.zx-rating-choice)>.modal-head{flex-shrink:0}#modal:has(.zx-rating-choice) #zx-business-form{display:flex;flex-direction:column;min-height:0;overflow:hidden;flex:1 1 auto}#modal:has(.zx-rating-choice) #zx-business-form>.form-body{overflow:auto;min-height:0;overscroll-behavior:contain;flex:1 1 auto}#modal:has(.zx-rating-choice) #zx-business-form>.modal-footer{flex-shrink:0}@media(min-width:801px){#modal:has(.zx-rating-choice)[open]{height:min(720px,calc(100dvh - 48px))}}@media(max-width:800px){#modal:has(.zx-rating-choice)[open]{max-height:86dvh}}
