/* ICON configurator UI refinement. Main photo, renderer and site density stay unchanged. */
:root {
  --icon-ui-copy:16px;
  --icon-ui-secondary:14px;
}
body,
button,
input,
select,
textarea {
  font-family:Onest,Arial,sans-serif;
  font-weight:400;
}
body {
  font-size:var(--icon-ui-copy);
  line-height:1.5;
}
.product-heading h1 {
  font-size:32px;
}
.section-title h2,
.wood-section + .section-title h2 {
  font-size:24px;
}
.source-label {
  min-inline-size:0;
  max-inline-size:40%;
  overflow-wrap:anywhere;
}
.product-heading p,
.section-title p,
.site-header nav a,
.site-header .nav-link,
.family-tabs button,
.button,
.view-button,
.text-button,
.wood-selection .text-button,
.wood-selection,
.stage-caption,
label,
input,
select,
textarea,
.dimensions dd,
.swatch-button,
.wood-swatch,
.room-tools label,
.room-tools select,
.room-tools input[type=number],
.room-tools .button,
.room-tools .upload-button,
.room-tools details summary,
.room-final-actions .button,
.error-message {
  font-size:var(--icon-ui-copy);
  line-height:1.5;
}
.small-note,
.visual-column > .small-note,
.source-label,
.dimensions dt,
.selected-material p,
.material-disclosure,
.price-section label,
.price-line > span,
.price-section > p,
.fabric-note,
.bottom-note > span,
.bottom-note > a,
.breadcrumb,
.gallery-footer > p,
.wood-section > .small-note,
.swatch-sample-only,
.intro-note,
.stage-corner,
.dialog-head p,
.toast,
.saved-empty span,
.saved-row p,
.saved-actions .button,
.saved-actions .text-button,
.room-caption,
.room-tools > .small-note,
.tool-section > .text-button,
.unprepared > span:last-child {
  font-size:var(--icon-ui-secondary);
  line-height:1.5;
}
/* A wrapped caption must not vertically centre its neighbour's photo. */
.swatch-button,
.wood-swatch {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  min-inline-size:0;
}
.swatch-image,
.wood-swatch img {
  flex:none;
}
.swatch-button > span:last-child,
.wood-swatch > span {
  display:block;
  min-block-size:3em;
  line-height:1.5;
  overflow-wrap:anywhere;
}
/* Equal columns and two-line label space align all three values. */
.dimensions {
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.dimensions > div {
  display:flex;
  flex-direction:column;
  min-inline-size:0;
}
.dimensions dt {
  min-block-size:3em;
}
.dimensions dd {
  margin:4px 0 0;
  font-variant-numeric:tabular-nums;
}
/* The photo opens the existing lightbox; its navigation is real gallery UI. */
#product-canvas {
  cursor:zoom-in;
}
#product-canvas[aria-disabled=true] {
  cursor:progress;
}
#zoom-dialog {
  width:calc(100vw - 32px);
  height:calc(100dvh - 32px);
  max-width:1440px;
  max-height:calc(100dvh - 32px);
}
#zoom-dialog[open] {
  display:flex;
  flex-direction:column;
}
#zoom-dialog .dialog-head {
  flex:none;
  margin-bottom:16px;
}
#zoom-canvas {
  flex:1 1 0;
  min-height:0;
  height:0;
  max-height:none;
  width:100%;
  object-fit:contain;
  touch-action:pan-y;
}
.zoom-gallery-navigation {
  display:flex;
  flex:none;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin-top:16px;
}
.zoom-gallery-navigation .icon-button {
  border:1px solid #000;
  background:#fff;
}
.zoom-gallery-navigation .icon-button:hover:not(:disabled) {
  background:#000;
  color:#fff;
}
.zoom-gallery-navigation .icon-button:disabled {
  color:var(--ink);
  background:var(--paper);
  opacity:.45;
}
#zoom-view-label {
  font-size:var(--icon-ui-secondary);
  line-height:1.5;
  text-align:center;
  font-variant-numeric:tabular-nums;
}
#zoom-caption {
  flex:none;
  margin-top:12px;
}
@media(max-width:700px) {
  :root {
    --icon-ui-secondary:16px;
  }
  .product-heading h1,
  .section-title h2,
  .wood-section + .section-title h2 {
    font-size:24px;
  }
  #zoom-dialog {
    width:100vw;
    height:100dvh;
    max-width:100vw;
    max-height:100dvh;
    margin:0;
    padding:16px;
  }
}
