/* Simple store browsing, using the existing private image and bottom-sheet surfaces. */
.ms-directory{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.ms-directory-row{position:relative;padding:14px 18px;border-bottom:1px solid var(--line);min-width:0}.ms-directory-row:last-child{border-bottom:0}.ms-store-photo{width:96px;height:96px;object-fit:cover;border-radius:8px;flex:0 0 96px;background:var(--surface-subtle)}.ms-picture-placeholder{display:grid;place-items:center;color:var(--muted);font-size:33px;border:1px solid var(--line)}.ms-directory-open{display:grid;grid-template-columns:64px minmax(0,1fr) 20px;align-items:center;gap:14px;width:100%;min-height:72px;padding:0;border:0;background:transparent;text-align:left;color:var(--ink);font:inherit;cursor:pointer;border-radius:6px}
.ms-directory-open .ms-store-photo{width:64px;height:64px;border-radius:8px;font-size:27px}
.ms-directory-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.ms-directory-name{font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.ms-directory-facts,.ms-directory-address{display:block;font-size:12px;line-height:1.6;color:var(--muted)}
.ms-directory-facts{overflow-wrap:anywhere}
.ms-directory-address{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.ms-directory-chevron{font-size:24px;line-height:1;color:var(--muted);text-align:center}
.ms-directory-announcement{font-size:12px;line-height:1.6;color:var(--muted);margin:6px 34px 0 78px;overflow-wrap:anywhere}
.ms-directory-details{display:flex;align-items:center;gap:8px;margin-left:78px;min-height:44px}
.ms-directory-details .ms-rating{min-height:44px;margin:0;padding:0}
.ms-directory-details .zx-help-trigger,.ms-directory-details .zx-help-fallback>summary{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
.ms-directory-details:has(>.zx-help:only-child),.ms-directory-details:has(>.zx-help-fallback:only-child){position:absolute;right:6px;bottom:4px;margin:0}
.ms-directory-row:has(.ms-directory-details>.zx-help:only-child) .ms-directory-chevron,.ms-directory-row:has(.ms-directory-details>.zx-help-fallback:only-child) .ms-directory-chevron{visibility:hidden}
.ms-directory-row:hover{background:var(--surface-subtle)}
.ms-tag{font-size:12px;padding:3px 8px;background:var(--surface-subtle);color:var(--muted);border-radius:5px;white-space:nowrap}.ms-store-facts{display:flex;gap:6px 12px;flex-wrap:wrap;font-size:12px;line-height:1.8;color:var(--muted)}.ms-store-facts span{overflow-wrap:anywhere}.ms-announcement{color:var(--muted)!important}.ms-empty{padding:25px 15px;font-size:12px;color:var(--muted);text-align:center}.ms-loading{padding:35px 20px;text-align:center;font-size:13px;color:var(--muted)}#modal:has(#merchant-storefront){width:min(880px,calc(100vw - 40px))}#modal:has(#merchant-storefront) #zx-business-form>.form-body{padding:20px 24px}#modal:has(#merchant-storefront) .modal-head h2{overflow-wrap:anywhere}.ms-store-header{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.ms-store-header .ms-store-photo{width:44px;height:44px;font-size:23px;border-radius:7px}
.ms-store-identity{min-width:0}
.ms-store-meta{display:flex;align-items:center;gap:3px;font-size:12px;line-height:1.6;color:var(--muted)}
.ms-store-meta>span:first-child{min-width:0;overflow-wrap:anywhere}
.ms-store-meta .zx-help{margin:0;flex-shrink:0}
.ms-store-meta .zx-help-trigger,.ms-store-meta .zx-help-fallback>summary{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
.ms-store-address{font-size:12px;line-height:1.6;color:var(--muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-store-header .ms-rating{margin:0;min-height:44px}
.ms-store-guide.btn{min-height:44px;padding:8px 10px;font-size:12px;white-space:nowrap}
.ms-example-label{display:inline-block;color:#9a6700;background:#fff8e9;border-radius:4px;padding:1px 4px;margin-right:6px;font-size:12px;font-weight:500;white-space:nowrap}
.ms-store-missing{color:var(--muted);font-size:12px;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}
.ms-search{display:flex;gap:8px;align-items:center;padding:10px 0}
.ms-search .field{flex:1;min-width:0;margin:0}
.ms-search .btn{flex-shrink:0;min-height:44px}
.ms-search .field>span{font-size:12px}
.ms-shop-grid{display:grid;grid-template-columns:114px minmax(0,1fr);align-items:start;gap:17px}.ms-category-nav{display:flex;flex-direction:column;background:var(--surface-subtle);border:1px solid var(--line);border-radius:10px;position:sticky;top:0;max-height:45vh;overflow:auto;scrollbar-width:thin}.ms-category-nav button{font-size:12px;color:var(--muted);text-align:left;line-height:1.7;padding:13px 12px;min-height:45px;overflow-wrap:anywhere;border-left:3px solid transparent}.ms-category-nav button[aria-pressed="true"]{background:var(--line);color:var(--ink);font-weight:600;border-left-color:var(--ink)}.ms-item-list{min-width:0}.ms-product-row{position:relative;min-width:0;border-bottom:1px solid var(--line);padding:10px 0}
.ms-product-row:first-child{padding-top:0}
.ms-product-open{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start;gap:12px;width:100%;min-height:82px;padding:0;border:0;border-radius:5px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.ms-product-photo{width:72px;height:72px;object-fit:cover;border-radius:7px;border:1px solid var(--line)}
.ms-product-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.ms-product-name{font-size:14px;line-height:1.5;font-weight:600;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.ms-product-spec{font-size:12px;line-height:1.6;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-product-copy>small{font-size:12px;line-height:1.6;color:var(--muted)}
.ms-product-price{display:flex;align-items:center;min-height:44px;font-size:14px;line-height:1.6;font-weight:600;overflow-wrap:anywhere;padding-right:78px}
.ms-product-select.btn{position:absolute;right:0;bottom:10px;min-height:44px;min-width:44px;padding:8px 10px;font-size:12px;max-width:100%;white-space:normal}
.ms-sold-out{position:absolute;right:0;bottom:10px;font-size:12px;line-height:1.6;color:var(--muted);padding:10px 0;max-width:70px}
.ms-cartbar{display:flex;align-items:center;gap:8px;width:100%;min-width:0;background:var(--surface-subtle)}
.ms-cartbar>.ms-cart-summary{min-width:0;flex:1;text-align:left;min-height:44px;padding:3px 0}
.ms-cartbar strong{display:block;color:var(--ink);font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.ms-cartbar small{display:block;font-size:12px;line-height:1.5;color:var(--muted)}
.ms-cartbar .btn{flex-shrink:0;min-height:44px!important;padding:8px 10px;font-size:12px}
.ms-cartbar>.zx-help{margin:0}
.ms-cartbar .zx-help-trigger,.ms-cartbar .zx-help-fallback>summary{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
.ms-disabled{opacity:.45;cursor:default}
.ms-cart-line{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.ms-cart-line>div:first-child{flex:1;min-width:0}.ms-cart-line>div:last-child{display:flex;gap:8px}.ms-cart-line h3{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.ms-cart-line p{font-size:12px;line-height:1.8;color:var(--muted);margin:5px 0;overflow-wrap:anywhere}.ms-cart-line strong{color:var(--ink);font-size:14px}.ms-cart-total{margin-top:19px;font-size:13px;color:var(--muted)}.ms-cart-total strong{color:var(--ink);margin-left:10px;font-size:20px}.ms-cart-total small{display:block;font-size:12px;line-height:1.8;margin-top:7px;color:var(--muted)}.ms-gallery{max-width:400px;margin:0 auto 22px}.ms-main-image{width:100%;display:block;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface-subtle);cursor:zoom-in;aspect-ratio:1}.ms-main-image img{display:block;width:100%;height:100%;object-fit:contain}.ms-main-placeholder{width:100%;aspect-ratio:2;height:auto;background:var(--surface-subtle);border-radius:8px;font-size:48px}.ms-thumbnails{display:flex;gap:9px;overflow:auto;padding:12px 2px 3px;scrollbar-width:thin}.ms-thumbnails button{height:62px;width:62px;flex:0 0 62px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.ms-thumbnails button[aria-pressed="true"]{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}.ms-thumbnails img{height:100%;width:100%;object-fit:cover}.ms-item-description{margin-bottom:21px}.ms-item-description h3{font-size:20px;line-height:1.6;color:var(--ink);margin-top:10px;overflow-wrap:anywhere}.ms-detail-price{display:block;color:var(--ink);font-size:23px;line-height:1.8;margin:5px 0 10px}.ms-item-description>p{font-size:12px;color:var(--muted);line-height:1.9;margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}.ms-option-group{min-width:0;margin:22px 0;padding:16px;border:1px solid var(--line);border-radius:10px}.ms-option-group legend{font-size:14px;color:var(--brand);font-weight:600;padding:0 6px}.ms-option-group legend small{font-size:12px;font-weight:400;color:var(--muted);margin-left:6px}.ms-option-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ms-option{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--line);border-radius:9px;min-width:0;padding:12px 10px;cursor:pointer;background:var(--surface-subtle)}.ms-option:has(input:checked){border-color:var(--muted);background:var(--brand-soft)}.ms-option input{appearance:auto;accent-color:var(--ink);flex:0 0 16px;width:16px!important;height:16px;padding:0;margin-top:3px}.ms-option>span{min-width:0}.ms-option strong{display:block;font-size:12px;line-height:1.65;color:var(--brand);overflow-wrap:anywhere}.ms-option small{display:block;font-size:12px;margin-top:5px;color:var(--muted)}.ms-option.is-disabled{opacity:.5;cursor:default}.ms-quantity{max-width:170px}.ms-line-total{font-size:13px;color:var(--muted);margin:17px 0}.ms-line-total strong{font-size:20px;color:var(--ink);margin-left:10px}.ms-service-terms{border-top:1px solid var(--line);margin-top:22px;padding-top:17px}.ms-service-terms h4{font-size:14px;color:var(--muted)}.ms-service-terms p{font-size:12px;line-height:1.9;margin-top:6px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.ms-store-info>p{font-size:12px;line-height:1.9;white-space:pre-wrap;color:var(--muted)}.ms-store-info dl{display:grid;grid-template-columns:90px minmax(0,1fr);gap:13px;font-size:12px;line-height:1.8;margin:22px 0}.ms-store-info dt{color:var(--muted)}.ms-store-info dd{margin:0;color:var(--muted);overflow-wrap:anywhere}#merchant-storefront button:focus-visible,.ms-directory button:focus-visible{outline:2px solid var(--muted);outline-offset:3px}
@media(max-width:800px){.ms-directory-row{padding:12px}
.ms-directory-open{grid-template-columns:52px minmax(0,1fr) 18px;gap:10px;min-height:72px}
.ms-directory-open .ms-store-photo{width:52px;height:52px;font-size:24px}
.ms-directory-name{font-size:15px;line-height:1.5}
.ms-directory-copy{gap:3px}
.ms-directory-announcement{margin:5px 28px 0 62px}
.ms-directory-details{margin-left:62px}
.ms-store-facts{font-size:12px;gap:4px 8px}
.ms-tag{font-size:12px;padding:2px 6px}
#modal:has(#merchant-storefront){width:100%;max-width:100%;container-type:size;container-name:merchant-sheet}#modal:has(#merchant-storefront) #zx-business-form>.form-body{padding:13px 15px}#modal:has(#merchant-storefront) .modal-head h2{font-size:17px}#modal:has(#merchant-storefront) .modal-footer{padding:11px 15px max(11px,env(safe-area-inset-bottom))}.ms-store-header{gap:8px;grid-template-columns:38px minmax(0,1fr) auto;padding-bottom:8px}
.ms-store-header .ms-store-photo{width:38px;height:38px;font-size:22px}
.ms-store-guide.btn{padding:8px;font-size:12px}
.ms-shop-grid{grid-template-columns:78px minmax(0,1fr);gap:11px}
.ms-category-nav{border-radius:7px;max-height:42vh}
.ms-category-nav button{padding:11px 7px;font-size:12px;min-height:44px}
.ms-search .btn{padding:9px 12px}
.ms-search input{padding:10px;min-height:44px}
.ms-product-open{grid-template-columns:56px minmax(0,1fr);gap:9px;min-height:80px}
.ms-product-photo{width:56px;height:56px;border-radius:6px}
.ms-product-price{padding-right:74px}
.ms-cartbar{gap:6px}
.ms-gallery{max-width:330px;margin-bottom:16px}.ms-thumbnails{gap:7px;padding-top:10px}.ms-thumbnails button{width:53px;height:53px;flex-basis:53px}.ms-item-description h3{font-size:18px}.ms-detail-price{font-size:21px}.ms-item-description>p{font-size:12px}.ms-option-group{padding:12px;margin:17px 0}.ms-option-group legend{font-size:13px}.ms-option-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ms-option{padding:11px 8px;gap:6px}.ms-option strong{font-size:12px}.ms-option small{font-size:12px}.ms-service-terms p{font-size:12px}.ms-cart-line{gap:9px;align-items:flex-start}.ms-cart-line h3{font-size:12px}.ms-cart-line>div:last-child{flex-direction:column;gap:4px}.ms-cart-line .btn{font-size:12px;min-height:34px;padding:7px 10px}.ms-cart-total strong{font-size:18px}}
@media(max-width:390px){.ms-directory-open{grid-template-columns:48px minmax(0,1fr) 16px;gap:8px}
.ms-directory-open .ms-store-photo{width:48px;height:48px}
.ms-directory-announcement,.ms-directory-details{margin-left:56px}
.ms-shop-grid{grid-template-columns:66px minmax(0,1fr);gap:9px}.ms-category-nav button{font-size:12px;padding-left:6px;padding-right:5px}.ms-product-open{grid-template-columns:48px minmax(0,1fr);gap:8px}
.ms-product-photo{width:48px;height:48px}
.ms-product-select.btn{padding:8px}
.ms-product-price{padding-right:68px}
.ms-option-choices{gap:6px}.ms-option{padding:10px 7px}.ms-option-group legend small{display:block;margin-left:0}}
@container merchant-sheet (max-height:360px){.ms-gallery{max-width:200px}.ms-store-header .ms-store-photo{display:none}#modal:has(#merchant-storefront) .modal-footer{padding-top:7px;padding-bottom:7px}.ms-cartbar .btn{padding-top:7px;padding-bottom:7px}}
@media(prefers-reduced-motion:reduce){.ms-directory *,.ms-storefront *,.ms-item-detail *{scroll-behavior:auto!important}}

.ms-rating{display:inline-flex;align-items:center;gap:4px;font-size:12px;line-height:1.7;color:var(--muted);padding:3px 0;margin:4px 0;border:0;background:transparent;cursor:pointer}.ms-rating>span{color:#9f7a34}.ms-rating>strong{font-weight:600;color:#8f6b2d}.ms-rating:focus-visible{outline:2px solid var(--muted);outline-offset:3px}.ms-ratings-summary{font-size:20px;color:var(--muted);padding:3px 0 12px;border-bottom:1px solid var(--line)}.ms-ratings-summary>strong{font-size:26px;color:#8f6b2d}.ms-rating-feedback:empty{display:none}.ms-rating-feedback{margin:13px 0}.ms-review{padding:17px 0;border-bottom:1px solid var(--line)}.ms-review:last-child{border-bottom:0}.ms-review-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.ms-review-head time{font-size:12px;color:var(--muted)}.ms-review-score{font-size:17px;letter-spacing:2px;color:#9a7838;margin:8px 0}.ms-review-score>span{font-size:12px;letter-spacing:0;margin-left:8px;color:var(--muted)}.ms-review-comment{font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted)}.ms-ratings-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;width:100%}#modal:has(#merchant-ratings){width:min(720px,calc(100vw - 40px))}#modal:has(#merchant-ratings)[open]{display:flex;flex-direction:column;max-height:85dvh;overflow:hidden}#modal:has(#merchant-ratings)>.modal-head{flex-shrink:0}#modal:has(#merchant-ratings) #zx-business-form{min-height:0;display:flex;flex-direction:column;overflow:hidden;flex:1 1 auto}#modal:has(#merchant-ratings) #zx-business-form>.form-body{overflow:auto;min-height:0;overscroll-behavior:contain;flex:1 1 auto}#modal:has(#merchant-ratings) #zx-business-form>.modal-footer{flex-shrink:0}@media(max-width:800px){#modal:has(#merchant-ratings){width:100%;max-width:100%}#modal:has(#merchant-ratings)[open]{max-height:86dvh}.ms-ratings-summary{font-size:16px}.ms-ratings-summary>strong{font-size:23px}.ms-review{padding:14px 0}.ms-review-comment{font-size:12px}.ms-ratings-actions .btn{font-size:12px;padding:9px 10px}}
@media(min-width:801px){#modal:has(#merchant-ratings)[open]{height:min(720px,calc(100dvh - 48px))}}
