/* Footwear size chart, shared by /size-guide and the product-page dialog.
   Same quiet table language as the policy pages; stocked sizes are picked out
   with a filled row rather than colour, so it holds in print and greyscale. */

.size-chart-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1rem;
}
.size-chart {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.size-chart th,
.size-chart td {
  text-align: center;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(21,21,21,0.08);
  white-space: nowrap;
}
.size-chart thead th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(21,21,21,0.55);
  white-space: normal;
  vertical-align: bottom;
  line-height: 1.3;
}
.size-chart tbody th { font-weight: 700; }
/* The US size stays pinned while the conversions scroll beside it on phones. */
.size-chart th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #f7f7f7;
  box-shadow: 1px 0 0 rgba(21,21,21,0.08);
}
.size-chart__stocked th:first-child { background: #ececec; }
.size-chart__stocked th,
.size-chart__stocked td { background: rgba(21,21,21,0.05); }
.size-chart__caption {
  caption-side: bottom;
  text-align: left;
  font-size: 13px;
  color: rgba(21,21,21,0.55);
  padding-top: 0.75rem;
}

.size-guide__measure {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  margin: 0 0 1.25rem;
}

/* ─── product page: button and dialog ─────────────────────────────────── */
.size-guide-open {
  font: inherit;
  font-size: 13px;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s;
}
.size-guide-open:hover { opacity: 1; }

.size-dialog {
  width: min(46rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #f7f7f7;
  color: #151515;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}
.size-dialog::backdrop { background: rgba(21,21,21,0.45); }
.size-dialog__inner { padding: 1.5rem 1.5rem 1.75rem; }
.size-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.size-dialog__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.size-dialog__close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(21,21,21,0.15);
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.size-dialog__close:hover { border-color: #151515; }
.size-dialog__lede {
  margin: 0 0 1rem;
  font-size: 14px;
  color: rgba(21,21,21,0.65);
}
.size-dialog__more {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 600px) {
  .size-dialog__inner { padding: 1.25rem 1rem 1.5rem; }
}
