.nf-size-guide-entry,
.nf-size-guide-entry *,
.nf-size-guide-modal,
.nf-size-guide-modal *,
.nf-size-guide-page,
.nf-size-guide-page * {
  box-sizing: border-box;
}

.nf-size-guide-entry {
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 2px 0 17px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--nf-primary, #0d5390) 16%, var(--nf-border, #dce7ef));
  border-radius: 14px;
  color: var(--nf-ink, #10263a);
  background:
    radial-gradient(circle at 100% 0, rgba(0, 191, 166, 0.09), transparent 11rem),
    linear-gradient(135deg, #fff, var(--nf-surface, #f4f9fc));
}

.nf-size-guide-entry__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--nf-primary, #0d5390);
  background: #fff;
  box-shadow: 0 5px 14px rgba(8, 47, 82, 0.08);
}

.nf-size-guide-entry__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nf-size-guide-entry__copy {
  min-width: 0;
}

.nf-size-guide-entry__copy strong,
.nf-size-guide-entry__copy small {
  display: block;
}

.nf-size-guide-entry__copy strong {
  margin-bottom: 2px;
  color: var(--nf-ink, #10263a);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.nf-size-guide-entry__copy small {
  color: var(--nf-muted, #617184);
  font-size: 9px;
  line-height: 1.4;
}

.nf-size-guide-entry__button {
  min-height: 38px;
  margin: 0 !important;
  padding: 0 15px;
  border: 1px solid var(--nf-primary, #0d5390);
  border-radius: 999px;
  color: var(--nf-primary, #0d5390);
  background: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 36px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nf-size-guide-entry__button:hover,
.nf-size-guide-entry__button:focus-visible {
  color: #fff;
  background: var(--nf-primary, #0d5390);
  transform: translateY(-1px);
}

.nf-size-guide-modal[hidden],
.nf-size-guide-panel[hidden] {
  display: none !important;
}

.nf-size-guide-modal {
  position: fixed;
  z-index: 2147483100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.nf-size-guide-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 24, 40, 0.72);
  opacity: 0;
  transition: opacity 170ms ease;
  backdrop-filter: blur(6px);
}

.nf-size-guide-dialog {
  position: relative;
  width: min(100%, 980px);
  max-height: min(790px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 35px 100px rgba(3, 22, 38, 0.38);
  opacity: 0;
  outline: 0;
  transform: translateY(13px) scale(0.985);
  transition: opacity 170ms ease, transform 170ms ease;
}

.nf-size-guide-modal.is-open .nf-size-guide-modal__backdrop,
.nf-size-guide-modal.is-open .nf-size-guide-dialog {
  opacity: 1;
}

.nf-size-guide-modal.is-open .nf-size-guide-dialog {
  transform: translateY(0) scale(1);
}

.nf-size-guide-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  padding: 23px 26px 20px;
  border-bottom: 1px solid var(--nf-border, #dce7ef);
  background:
    radial-gradient(circle at 82% 0, rgba(0, 191, 166, 0.11), transparent 15rem),
    linear-gradient(135deg, #fff, var(--nf-surface, #f4f9fc));
}

.nf-size-guide-dialog__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--nf-primary, #0d5390);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nf-size-guide-dialog__header h2 {
  margin: 0;
  color: var(--nf-primary-dark, #082f52);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.08;
}

.nf-size-guide-dialog__header p {
  margin: 7px 0 0;
  color: var(--nf-muted, #617184);
  font-size: 11px;
  line-height: 1.5;
}

.nf-size-guide-dialog__close {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  margin: 0 !important;
  padding: 0;
  border: 1px solid var(--nf-border, #dce7ef);
  border-radius: 999px;
  color: var(--nf-muted, #617184);
  background: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.nf-size-guide-dialog__close:hover,
.nf-size-guide-dialog__close:focus-visible {
  border-color: var(--nf-primary, #0d5390);
  color: var(--nf-primary, #0d5390);
}

.nf-size-guide-dialog__body {
  display: grid;
  max-height: calc(min(790px, 100vh - 36px) - 114px);
  grid-template-columns: 282px minmax(0, 1fr);
  overflow: hidden;
}

.nf-size-guide-how {
  overflow-y: auto;
  padding: 20px;
  border-right: 1px solid var(--nf-border, #dce7ef);
  background: #fbfdfe;
}

.nf-size-guide-figure {
  margin: 0;
}

.nf-size-guide-figure__art {
  display: block;
  width: min(100%, 225px);
  height: 287px;
  margin: 0 auto;
}

.nf-size-guide-figure__head,
.nf-size-guide-figure__body {
  fill: url("#nf-size-body-gradient");
  stroke: color-mix(in srgb, var(--nf-primary-dark, #082f52) 38%, #fff);
  stroke-width: 1.4;
}

.nf-size-guide-figure__neck,
.nf-size-guide-figure__center {
  fill: none;
  stroke: rgba(13, 83, 144, 0.16);
  stroke-width: 1.2;
}

.nf-size-guide-figure__center {
  stroke-dasharray: 4 5;
}

.nf-size-guide-figure__measure ellipse,
.nf-size-guide-figure__measure > path {
  fill: none;
  stroke: var(--nf-primary, #0d5390);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 5 4;
}

.nf-size-guide-figure__measure circle {
  fill: var(--nf-primary, #0d5390);
  stroke: #fff;
  stroke-width: 2;
}

.nf-size-guide-figure__measure text {
  fill: #fff;
  font-size: 10px;
  font-weight: 800;
  text-anchor: middle;
}

.nf-size-guide-figure__measure--underbust ellipse,
.nf-size-guide-figure__measure--underbust > path,
.nf-size-guide-figure__measure--hip ellipse,
.nf-size-guide-figure__measure--hip > path {
  stroke: var(--nf-accent-dark, #008f7c);
}

.nf-size-guide-figure__measure--underbust circle,
.nf-size-guide-figure__measure--hip circle {
  fill: var(--nf-accent-dark, #008f7c);
}

.nf-size-guide-figure figcaption {
  max-width: 220px;
  margin: -5px auto 0;
  color: var(--nf-muted, #617184);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.nf-size-guide-steps {
  display: grid;
  gap: 7px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.nf-size-guide-steps li {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  column-gap: 9px;
}

.nf-size-guide-steps li > span {
  display: grid;
  width: 24px;
  height: 24px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 999px;
  color: var(--nf-primary, #0d5390);
  background: var(--nf-surface, #f4f9fc);
  font-size: 9px;
  font-weight: 850;
}

.nf-size-guide-steps strong,
.nf-size-guide-steps small {
  display: block;
}

.nf-size-guide-steps strong {
  color: var(--nf-ink, #10263a);
  font-size: 10px;
  line-height: 1.2;
}

.nf-size-guide-steps small {
  color: var(--nf-muted, #617184);
  font-size: 8px;
  line-height: 1.35;
}

.nf-size-guide-content {
  min-width: 0;
  overflow-y: auto;
  padding: 20px 23px 22px;
}

.nf-size-guide-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 13px;
  background: var(--nf-surface, #f4f9fc);
}

.nf-size-guide-tabs button {
  min-height: 39px;
  margin: 0 !important;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  color: var(--nf-muted, #617184);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.nf-size-guide-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--nf-primary, #0d5390);
  box-shadow: 0 7px 17px rgba(13, 83, 144, 0.18);
}

.nf-size-guide-panel {
  padding-top: 18px;
}

.nf-size-guide-panel__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.nf-size-guide-panel__heading strong {
  color: var(--nf-ink, #10263a);
  font-size: 13px;
  font-weight: 820;
}

.nf-size-guide-panel__heading span {
  color: var(--nf-muted, #617184);
  font-size: 9px;
}

.nf-size-guide-table-wrap {
  overflow: hidden;
  border: 1px solid var(--nf-border, #dce7ef);
  border-radius: 14px;
}

.nf-size-guide-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.nf-size-guide-table th,
.nf-size-guide-table td {
  padding: 10px 11px;
  border-width: 0 0 1px;
  border-color: var(--nf-border, #dce7ef);
  color: var(--nf-ink, #10263a);
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.nf-size-guide-table thead th {
  color: var(--nf-primary-dark, #082f52);
  background: var(--nf-surface, #f4f9fc);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nf-size-guide-table tbody th {
  background: #fbfdfe;
}

.nf-size-guide-table tbody th strong,
.nf-size-guide-table tbody th small {
  display: block;
}

.nf-size-guide-table tbody th strong {
  color: var(--nf-primary, #0d5390);
  font-size: 11px;
  font-weight: 850;
}

.nf-size-guide-table tbody th small,
.nf-size-guide-table td small {
  color: var(--nf-muted, #617184);
  font-size: 7px;
  font-weight: 650;
}

.nf-size-guide-table tr:last-child th,
.nf-size-guide-table tr:last-child td {
  border-bottom: 0;
}

.nf-size-guide-table tbody tr:hover th,
.nf-size-guide-table tbody tr:hover td {
  background: #f8fbfd;
}

.nf-size-guide-table--sets th,
.nf-size-guide-table--sets td {
  padding-right: 7px;
  padding-left: 7px;
  font-size: 9px;
}

.nf-size-guide-advice {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--nf-accent, #00bfa6) 22%, var(--nf-border, #dce7ef));
  border-radius: 12px;
  background: color-mix(in srgb, var(--nf-accent, #00bfa6) 5%, #fff);
}

.nf-size-guide-advice > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--nf-accent-dark, #008f7c);
  font-size: 13px;
  font-weight: 850;
}

.nf-size-guide-advice p {
  margin: 0;
  color: var(--nf-muted, #617184);
  font-size: 9px;
  line-height: 1.5;
}

.nf-size-guide-advice strong {
  color: var(--nf-ink, #10263a);
}

.nf-size-guide-page-shell {
  padding: 42px 0 64px;
  background:
    radial-gradient(circle at 8% 4%, rgba(0, 191, 166, 0.08), transparent 24rem),
    linear-gradient(180deg, #f8fbfd, #fff 28rem);
}

.nf-size-guide-page {
  overflow: hidden;
  border: 1px solid var(--nf-border, #dce7ef);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(8, 47, 82, 0.11);
}

.nf-size-guide-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 34px 27px;
  border-bottom: 1px solid var(--nf-border, #dce7ef);
  background:
    radial-gradient(circle at 78% 0, rgba(0, 191, 166, 0.12), transparent 20rem),
    linear-gradient(135deg, #fff, var(--nf-surface, #f4f9fc));
}

.nf-size-guide-page__header h1 {
  margin: 0;
  color: var(--nf-primary-dark, #082f52);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.04;
}

.nf-size-guide-page__header p {
  max-width: 650px;
  margin: 9px 0 0;
  color: var(--nf-muted, #617184);
  font-size: 13px;
  line-height: 1.6;
}

.nf-size-guide-page__share {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.nf-size-guide-page__share button {
  min-height: 42px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--nf-primary, #0d5390);
  border-radius: 999px;
  color: var(--nf-primary, #0d5390);
  background: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 40px;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.nf-size-guide-page__share button:hover,
.nf-size-guide-page__share button:focus-visible {
  color: #fff;
  background: var(--nf-primary, #0d5390);
}

.nf-size-guide-page__share span {
  min-height: 16px;
  color: var(--nf-accent-dark, #008f7c);
  font-size: 8px;
  font-weight: 700;
}

.nf-size-guide-page__body {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
}

.nf-size-guide-page .nf-size-guide-how {
  overflow: visible;
  padding: 27px 25px;
}

.nf-size-guide-page .nf-size-guide-content {
  overflow: visible;
  padding: 29px 32px 31px;
}

.nf-size-guide-page__intro {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 17px;
}

.nf-size-guide-page__intro strong {
  color: var(--nf-ink, #10263a);
  font-size: 14px;
  font-weight: 820;
}

.nf-size-guide-page__intro span {
  color: var(--nf-muted, #617184);
  font-size: 10px;
  line-height: 1.5;
}

.nf-size-guide-page .nf-size-guide-table th,
.nf-size-guide-page .nf-size-guide-table td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.nf-size-guide-page__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid var(--nf-border, #dce7ef);
  color: var(--nf-muted, #617184);
  background: #fbfdfe;
  font-size: 10px;
}

.nf-size-guide-page__footer strong {
  color: var(--nf-primary-dark, #082f52);
  font-size: 11px;
}

.nf-size-guide-page__footer a {
  margin-left: auto;
  color: var(--nf-primary, #0d5390);
  font-weight: 800;
  text-decoration: none;
}

.nf-size-guide-page__footer a:hover,
.nf-size-guide-page__footer a:focus-visible {
  text-decoration: underline;
}

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

@media (max-width: 760px) {
  .nf-size-guide-entry {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px 10px;
    margin-bottom: 14px;
    padding: 10px;
  }

  .nf-size-guide-entry__icon {
    width: 38px;
    height: 38px;
  }

  .nf-size-guide-entry__button {
    width: 100%;
    min-height: 37px;
    grid-column: 1 / 3;
    line-height: 35px;
  }

  .nf-size-guide-modal {
    padding: 8px;
  }

  .nf-size-guide-page-shell {
    padding: 18px 0 38px;
  }

  .nf-size-guide-page {
    border-radius: 18px;
  }

  .nf-size-guide-page__header {
    display: block;
    padding: 23px 18px 20px;
  }

  .nf-size-guide-page__header h1 {
    font-size: 34px;
  }

  .nf-size-guide-page__header p {
    font-size: 10px;
  }

  .nf-size-guide-page__share {
    align-items: flex-start;
    margin-top: 15px;
  }

  .nf-size-guide-page__share button {
    min-height: 38px;
    line-height: 36px;
  }

  .nf-size-guide-page__body {
    display: block;
  }

  .nf-size-guide-dialog {
    max-height: calc(100vh - 16px);
    border-radius: 19px;
  }

  .nf-size-guide-dialog__header {
    padding: 18px 17px 15px;
  }

  .nf-size-guide-dialog__header h2 {
    font-size: 24px;
  }

  .nf-size-guide-dialog__header p {
    max-width: 250px;
    font-size: 9px;
  }

  .nf-size-guide-dialog__close {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .nf-size-guide-dialog__body {
    display: block;
    max-height: calc(100vh - 111px);
    overflow-y: auto;
  }

  .nf-size-guide-how,
  .nf-size-guide-content {
    overflow: visible;
  }

  .nf-size-guide-how {
    display: grid;
    grid-template-columns: minmax(135px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 7px;
    padding: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--nf-border, #dce7ef);
  }

  .nf-size-guide-figure__art {
    width: 140px;
    height: 201px;
  }

  .nf-size-guide-figure figcaption {
    display: none;
  }

  .nf-size-guide-steps {
    margin: 0;
  }

  .nf-size-guide-content {
    padding: 15px;
  }

  .nf-size-guide-page .nf-size-guide-how,
  .nf-size-guide-page .nf-size-guide-content {
    padding: 17px 15px;
  }

  .nf-size-guide-page__intro strong {
    font-size: 12px;
  }

  .nf-size-guide-page__intro span {
    font-size: 9px;
  }

  .nf-size-guide-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nf-size-guide-tabs button {
    padding: 5px 3px;
    font-size: 8px;
    line-height: 1.15;
    white-space: normal;
  }

  .nf-size-guide-panel__heading {
    display: block;
  }

  .nf-size-guide-panel__heading strong,
  .nf-size-guide-panel__heading span {
    display: block;
  }

  .nf-size-guide-panel__heading span {
    margin-top: 3px;
  }

  .nf-size-guide-table--sets thead {
    display: none;
  }

  .nf-size-guide-table--sets,
  .nf-size-guide-table--sets tbody,
  .nf-size-guide-table--sets tr {
    display: block;
    width: 100%;
  }

  .nf-size-guide-table--sets tbody {
    display: grid;
    gap: 8px;
    padding: 8px;
    background: var(--nf-surface, #f4f9fc);
  }

  .nf-size-guide-table--sets tr {
    display: grid;
    grid-template-columns: 58px repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--nf-border, #dce7ef);
    border-radius: 11px;
    background: #fff;
  }

  .nf-size-guide-table--sets tbody th {
    display: grid;
    grid-row: 1 / 3;
    align-content: center;
    border-right: 1px solid var(--nf-border, #dce7ef);
    border-bottom: 0;
  }

  .nf-size-guide-table--sets td {
    position: relative;
    display: block;
    padding: 22px 5px 6px;
    border-right: 1px solid var(--nf-border, #dce7ef);
    background: #fff;
    font-size: 9px;
  }

  .nf-size-guide-table--sets td:nth-of-type(2),
  .nf-size-guide-table--sets td:nth-of-type(4) {
    border-right: 0;
  }

  .nf-size-guide-table--sets td:nth-of-type(3),
  .nf-size-guide-table--sets td:nth-of-type(4) {
    border-bottom: 0;
  }

  .nf-size-guide-table--sets td::before {
    position: absolute;
    top: 5px;
    right: 3px;
    left: 3px;
    overflow: hidden;
    color: var(--nf-muted, #617184);
    content: attr(data-label);
    font-size: 6.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .nf-size-guide-page__footer {
    display: grid;
    gap: 5px;
    padding: 17px 18px;
  }

  .nf-size-guide-page__footer a {
    margin: 5px 0 0;
  }
}

@media (max-width: 390px) {
  .nf-size-guide-how {
    grid-template-columns: 128px minmax(0, 1fr);
    padding: 12px;
  }

  .nf-size-guide-figure__art {
    width: 126px;
    height: 184px;
  }

  .nf-size-guide-steps {
    gap: 5px;
  }

  .nf-size-guide-steps li {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 7px;
  }

  .nf-size-guide-steps li > span {
    width: 22px;
    height: 22px;
  }

  .nf-size-guide-steps strong {
    font-size: 9px;
  }

  .nf-size-guide-steps small {
    font-size: 7px;
  }

  .nf-size-guide-content {
    padding: 12px;
  }

  .nf-size-guide-table th,
  .nf-size-guide-table td {
    padding-right: 6px;
    padding-left: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-size-guide-modal__backdrop,
  .nf-size-guide-dialog,
  .nf-size-guide-entry__button {
    transition: none !important;
  }
}
