.commerce { background: #fff; color: var(--text); font-size: 14px; }
.community { --ws-line: var(--line); }
.commerce-review-entry { margin-top: 20px; padding-block: 20px; border-top: 1px solid var(--line); }
.community .commerce-content { max-width: 1040px; }
.community h1 { overflow-wrap: anywhere; }
.community label { display: grid; gap: 6px; }
.community label:has(input[type=checkbox]) { display: flex; align-items: flex-start; gap: 10px; }
.community input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; accent-color: #075438; }
.community select { min-height: 44px; padding: 8px; font: inherit; color: inherit; background: white; border: 1px solid #afc0b5; border-radius: 4px; }
.community button { min-height: 44px; }
.community .ws-row a { display: inline-flex; align-items: center; min-height: 44px; }
.community [role=status]:not([hidden]) { background: #eaf4ed; border-left: 3px solid #075438; padding: 12px; }
.commerce *, .commerce *::before, .commerce *::after { min-width: 0; }
.commerce a, .commerce-tools a { color: #075438; text-underline-offset: 4px; }
.commerce svg, .commerce-tools svg, .discovery .commerce-actions svg { width: 20px; height: 20px; flex-shrink: 0; }
.commerce-tools { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 0 32px; border-bottom: 1px solid var(--line); background: #fff; min-height: 44px; }
.commerce-tools a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; text-decoration: none; }
.commerce-tools a span { min-width: 20px; text-align: center; }
.commerce-content { max-width: 1500px; margin: auto; padding: 24px 32px 40px; }
.commerce h1, .commerce h2, .commerce h3, .commerce p { margin: 0; overflow-wrap: anywhere; }
.commerce h1 { font-size: 30px; line-height: 1.2; }
.commerce h2 { font-size: 22px; line-height: 1.35; margin-bottom: 14px; }
.commerce h3 { font-size: 17px; line-height: 1.4; }
.commerce p { line-height: 1.65; margin-bottom: 12px; }
.commerce button, .commerce-tool { min-height: 44px; }
.commerce button:disabled { opacity: 1; background: #f0f3f1; color: #58675e; border: 1px solid var(--line); cursor: not-allowed; }
.commerce-heading { margin-bottom: 24px; }
.commerce-heading h1 { width: fit-content; max-width: 100%; }
.commerce-heading > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; }
.commerce .commerce-kicker { color: #58675e; font-size: 11px; margin: 12px 0; }
.commerce [tabindex="-1"]:focus { outline: 3px solid var(--focus); outline-offset: 5px; }
.commerce-product-layout, .commerce-supplier-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; }
.commerce-gallery-stage { position: relative; aspect-ratio: 4/3; background: #f1f5f2; border: 1px solid var(--line); border-radius: 6px; }
.commerce-gallery-stage > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.commerce-gallery-unavailable { aspect-ratio: auto; height: 260px; }
.commerce-media-missing { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 24px; text-align: center; color: #58675e; }
.commerce-media-missing svg { width: 40px; height: 40px; }
.commerce-media-missing strong { font-size: 16px; }
.commerce-media-missing p { font-size: 12px; margin: 0; }
.commerce-zoom { position: absolute; right: 8px; bottom: 8px; background: white; border: 1px solid var(--line); }
.commerce-media-caption { margin: 12px 0 !important; font-size: 11px; color: #58675e; }
.commerce-thumbnails { display: flex; gap: 10px; flex-wrap: wrap; }
.commerce-thumbnails button { width: 88px; height: 68px; padding: 3px; background: white; border: 1px solid var(--line); }
.commerce-thumbnails [aria-pressed="true"] { border: 2px solid #075438; }
.commerce-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.commerce-empty-thumbnail { margin-top: 12px; }
.commerce-gallery dialog { width: min(900px,calc(100% - 32px)); max-height: 90vh; padding: 24px; border: 1px solid var(--line); border-radius: 8px; }
.commerce-gallery dialog::backdrop { background: #09281caf; }
.commerce-gallery dialog > img { display: block; width: 100%; height: auto; max-height: 65vh; object-fit: contain; }
.commerce-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.commerce-dialog-heading h2 { font-size: 20px; }
.commerce-price { display: block; font-size: 28px; margin: 20px 0 4px; }
.commerce-price small { font-size: 14px; font-weight: 400; }
.commerce-fine, .commerce-notice, .commerce-session-note { font-size: 12px; color: #58675e; }
.commerce-notice { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px !important; }
.commerce-facts { margin: 16px 0 24px; }
.commerce-facts > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.commerce-facts dt { color: #58675e; font-size: 12px; }
.commerce-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.commerce-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.commerce .commerce-actions, .discovery .commerce-actions { display: flex; flex-direction: row; justify-content: flex-start; }
.commerce .commerce-actions .commerce-tool, .discovery .commerce-actions .commerce-tool { width: 44px; height: 44px; min-width: 44px; flex: 0 0 44px; padding: 8px; }
.commerce-tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: white; color: #075438; border: 1px solid var(--line-strong); padding: 8px 12px; font-size: 12px; }
.commerce-tool[aria-pressed="true"] { background: #edf4ef; border-color: #075438; }
.commerce-tool { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.commerce-tool > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.commerce-primary { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 12px 16px; color: white !important; background: #075438; text-decoration: none; border-radius: 4px; font-size: 13px; font-weight: 600; }
.commerce-purchase { display: grid; gap: 10px; margin-top: 20px; }
.commerce-detail-band { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 28px; }
.commerce-detail-band h2:not(:first-child) { margin-top: 28px; }
.commerce-identity { display: flex; gap: 20px; align-items: center; padding: 20px 0; }
.commerce-identity > svg { width: 44px; height: 44px; }
.commerce-sourcing-aside { border-left: 1px solid var(--line); padding-left: 32px; align-self: start; }
.commerce-sourcing-aside > button { display: block; width: 100%; margin-top: 12px; }
.commerce-sourcing-aside .commerce-primary { width: 100%; }
.commerce-record { display: flex; align-items: flex-start; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.commerce-record > div { flex: 1; }
.commerce-record h2 { font-size: 20px; }
.commerce-record-icon { display: flex; justify-content: center; align-items: center; width: 60px; height: 60px; flex-shrink: 0; background: #edf4ef; color: #075438; }
.commerce-empty { padding: 28px 0; border-top: 1px solid var(--line); }
.commerce-empty > a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 24px; }
.commerce-segments { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.commerce-segments a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.commerce-segments [aria-current="page"] { border-bottom: 3px solid #075438; font-weight: 700; }
.commerce-table-scroll { overflow: auto; border: 1px solid var(--line); margin-top: 20px; max-width: 100%; }
.commerce table { border-collapse: collapse; width: 100%; min-width: calc(160px * var(--commerce-columns,4)); table-layout: fixed; }
.commerce caption { text-align: left; padding: 14px; font-size: 12px; color: #58675e; }
.commerce th, .commerce td { padding: 16px; border: 1px solid var(--line); vertical-align: top; text-align: left; white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
.commerce thead th { background: #edf4ef; }
.commerce th { text-transform: none; }
.commerce th .commerce-tool { display: flex; margin-top: 14px; }
.commerce-handoff { max-width: 800px; }
.commerce-handoff > button { display: block; margin: 16px 0; }
.discovery .commerce-actions { margin: 4px 0; }
.discovery .commerce-tool { min-height: 44px; padding: 8px; }
@media (max-width: 800px) {
  .commerce-product-layout, .commerce-supplier-layout, .commerce-detail-band { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .commerce-content { padding: 20px 16px 32px; }
  .commerce-tools { padding: 0 16px; }
  .commerce h1 { font-size: 27px; }
  .commerce h2 { font-size: 21px; }
  .commerce-sourcing-aside { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .commerce-record { gap: 12px; }
  .commerce-record-icon { width: 44px; height: 44px; }
  .commerce-gallery-unavailable { height: 160px; }
}
