.size-guide-link {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 0.75rem;
  cursor: pointer;
}

.size-help-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fit-finder {
  width: min(100%, 480px);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: #f2f1ed;
  color: var(--foreground);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.fit-finder::backdrop { background: rgb(0 0 0 / 45%); }
.fit-finder [hidden] { display: none !important; }
.fit-finder__panel { padding: 12px clamp(20px, 5vw, 36px) 24px; }
.fit-finder__header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fit-finder__eyebrow { display: block; font-size: 9px; font-weight: 400; letter-spacing: .19em; text-transform: uppercase; }
.fit-finder__product { display: flex; gap: 16px; align-items: center; background: #e8e7e2; padding: 14px; margin: 14px 0 24px; font-size: 12px; }
.fit-finder__product img { width: 46px; height: 58px; object-fit: cover; }
#fitProductPrice { color: var(--muted); font-size: 11px; margin-top: 4px; }
.fit-finder__progress { height: 2px; background: #d8d6cf; margin-bottom: 8px; }
.fit-finder__progress span { display: block; height: 100%; background: #131311; width: 33.333%; transition: width .2s; }
.fit-finder h2 { font-family: var(--font-body); font-size: clamp(22px, 5vw, 27px); font-weight: 400; line-height: 1.2; letter-spacing: -.04em; margin: 30px 0 10px; }
.fit-finder__intro { font-size: 12px; line-height: 1.7; margin-bottom: 26px; color: #514f49; }
.fit-finder__body { display: grid; grid-template-columns: 75px minmax(0, 1fr); align-items: center; gap: 25px; padding: 16px 0; }
.fit-finder__figure { width: 75px; height: 260px; fill: #131311; }
.fit-finder__measure-line { fill: none; stroke: #8c8981; stroke-width: 1; stroke-dasharray: 2 4; }
.fit-control { margin-bottom: 26px; min-width: 0; }
.fit-control__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fit-control label { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.fit-control output { display: block; margin: 12px 0 10px; font-size: 30px; font-weight: 300; letter-spacing: -.04em; line-height: 1.2; }
.fit-finder__units { display: flex; gap: 10px; justify-content: flex-end; }
.fit-finder__units button { background: transparent; border: 0; border-bottom: 1px solid transparent; font-size: 9px; letter-spacing: .06em; padding: 7px 2px; cursor: pointer; color: #68665f; }
.fit-finder__units button[aria-pressed="true"] { color: #131311; border-bottom-color: #131311; }
.fit-control__slider { display: flex; align-items: center; gap: 8px; }
.fit-control__slider button { flex: 0 0 32px; min-height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.fit-control input[type="range"] { appearance: none; -webkit-appearance: none; flex: 1; width: 100%; min-width: 0; height: 30px; background: transparent; cursor: pointer; }
.fit-control input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, #131311 var(--fill), #c9c7be var(--fill)); }
.fit-control input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: #f2f1ed; border: 1px solid #131311; box-shadow: 0 2px 4px #0002; }
.fit-control input[type="range"]::-moz-range-track { height: 2px; background: #c9c7be; }
.fit-control input[type="range"]::-moz-range-progress { height: 2px; background: #131311; }
.fit-control input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #f2f1ed; border: 1px solid #131311; }
.fit-finder__hint { font-size: 11px; line-height: 1.7; color: #68665f; margin: 12px 0; }
.fit-finder__check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.7; margin: 18px 0; cursor: pointer; }
.fit-finder__check input { width: 16px; height: 16px; flex-shrink: 0; accent-color: #131311; margin-top: 2px; }
.fit-finder__live { display: flex; gap: 20px; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 20px; margin: 28px 0 22px; }
.fit-finder__live p { font-size: 11px; color: #68665f; margin-top: 6px; line-height: 1.6; }
.fit-finder__live strong { font-size: 30px; font-weight: 300; }
.fit-finder__actions { display: flex; gap: 12px; margin-top: 24px; }
.fit-finder__actions button { min-height: 48px; padding: 12px 16px; border: 1px solid #131311; background: transparent; font-size: 12px; cursor: pointer; }
.fit-finder__actions #fitNext { flex: 1; background: #131311; color: #f2f1ed; }
.fit-finder__actions #fitNext:disabled { background: #d8d6cf; border-color: #d8d6cf; color: #68665f; cursor: not-allowed; }
.fit-finder__privacy { font-size: 10px; color: #68665f; margin-top: 24px; line-height: 1.7; }
.fit-finder__result { padding: 32px; text-align: center; background: #e8e7e2; margin: 24px 0; }
.fit-finder__result strong { display: block; font-family: var(--font-display); font-size: 72px; line-height: 1.2; font-weight: 400; margin-top: 12px; }
#fitResultReason { font-size: 13px; line-height: 1.8; }
.fit-finder__reset { border: 0; border-bottom: 1px solid #68665f; background: transparent; font-size: 11px; color: #68665f; cursor: pointer; padding: 6px 0; }
.fit-finder button:focus-visible, .fit-finder input:focus-visible { outline: 2px solid #131311; outline-offset: 4px; }
@media (max-width: 360px) {
  .fit-finder__body { grid-template-columns: 50px minmax(0, 1fr); gap: 14px; }
  .fit-finder__figure { width: 50px; }
  .fit-control output { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .fit-finder__progress span { transition: none; } }

body.size-guide-open { overflow: hidden; }

.size-guide {
  width: min(900px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  overflow: auto;
}

.size-guide::backdrop { background: rgb(0 0 0 / 55%); }
.size-guide__panel { padding: clamp(16px, 4vw, 36px); }
.size-guide__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.size-guide__header h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; }
.size-guide__close { width: 44px; height: 44px; border: 0; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; }
.size-guide__panel > p { margin: 8px 0 24px; color: var(--muted); font-size: 0.75rem; }
.size-guide__scroll { overflow-x: auto; }
.size-guide__table { width: 100%; min-width: 500px; border-spacing: 4px; table-layout: fixed; font-family: Georgia, serif; color: #4b4b49; }
.size-guide__table th, .size-guide__table td { padding: clamp(18px, 3.5vh, 32px) 8px; text-align: center; font-size: clamp(14px, 2vw, 22px); white-space: nowrap; }
.size-guide__table th:first-child { width: 15%; }
.size-guide__table thead th { text-transform: uppercase; }
.size-guide__table thead, .size-guide__table tbody tr:nth-child(even) { background: #e7e7e7; }
.size-guide__table tbody tr:nth-child(odd) { background: #f3f3f3; }
.size-guide-link:focus-visible, .size-guide__close:focus-visible, .size-guide__scroll:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; }

@media (max-width: 540px) {
  .size-guide__table { min-width: 460px; }
  .size-guide__panel > p::after { content: " Swipe to view all measurements."; }
}
