:root { color-scheme: light; font: 15px/1.4 system-ui, sans-serif; color: #222; background: white; }
* { box-sizing: border-box; }
body { max-width: 900px; margin: auto; padding: 16px; }
[hidden] { display: none !important; }
header, .search-tools, .store-picker, .product-top, .pagination { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
header { margin-bottom: 20px; }
h1 { font-size: 21px; margin: 0; }
h1 a { color: inherit; text-decoration: none; }
a { color: #145da0; }
h2 { font-size: 18px; }
button, input, select { font: inherit; padding: 6px 8px; }
button, summary, select { cursor: pointer; }
:focus-visible { outline: 2px solid #145da0; outline-offset: 2px; }
.field { display: grid; gap: 4px; min-width: 0; }
label { font-size: 12px; }
input, select { width: 100%; min-height: 36px; }
.search-tools, .store-picker { align-items: end; margin-bottom: 12px; }
.search-field, .store-field { flex: 1; }
.sort-field { width: 150px; }
.store-picker > .field:first-child { width: 30%; }
.results-meta, footer, .product-number, .product-barcodes, .product-price small { color: #626262; font-size: 12px; }
.results-meta p { margin: 14px 0 6px; }
.table-head { display: flex; justify-content: space-between; border-bottom: 1px solid #aaa; padding: 4px 0; font-size: 12px; }
.product { padding: 6px 0; border-bottom: 1px solid #ddd; }
.product-top { min-height: 24px; }
.product-description { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-width: 0; }
.product-name { font-size: 14px; font-weight: 400; margin: 0; overflow-wrap: anywhere; }
.product-number, .product-barcodes { font-variant-numeric: tabular-nums; }
.product-barcodes { flex-basis: 100%; overflow-wrap: anywhere; }
.product-price { display: inline-flex; align-items: baseline; gap: 6px; flex-shrink: 0; white-space: nowrap; font-weight: 600; }
.product-price small { font-weight: 400; }
.product details { font-size: 12px; margin-top: 4px; }
.group-summary { width: 100%; }
.group-summary::-webkit-details-marker { display: none; }
.group-toggle { display: inline-block; color: #626262; }
.product-group[open] > .group-summary .group-toggle { transform: rotate(90deg); }
.group-items { padding-left: 16px; }
.group-items > .product:last-child { border-bottom: 0; }
.price-options { list-style: none; padding: 0; margin: 6px 0; }
.price-options li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding: 4px 0; }
.notice, .error { padding: 8px 0; color: #8c351b; }
.error p { margin: 0 0 4px; }
.pagination { align-items: center; font-size: 12px; margin-top: 12px; }
footer { border-top: 1px solid #aaa; margin-top: 24px; padding-top: 8px; }
footer p { margin: 0 0 4px; }
pre { padding: 12px; background: #f5f5f5; overflow-x: auto; }
code { overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; vertical-align: top; border-bottom: 1px solid #ddd; padding: 8px 4px; }
.api-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.api-example { margin: 12px 0; }
.api-example > summary { font-weight: 600; }
.api-docs h2 { margin-top: 28px; }
.api-docs h3 { font-size: 15px; }
.api-docs pre { font-size: 13px; }
.api-docs table { font-size: 13px; }
.api-table { overflow-x: auto; }
.api-docs td:first-child { white-space: nowrap; }
.api-docs td code { overflow-wrap: normal; }
@media (max-width: 500px) {
  body { padding: 12px; }
  h1 { font-size: 18px; }
  .store-picker { display: grid; }
  .store-picker > .field:first-child { width: auto; }
  .sort-field { width: 125px; }
}
