.thryl-size-chart-control {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin: .55rem 0 .75rem;
  width: 100%;
}

.thryl-size-chart-control > strong {
  color: #f7f7f7;
  font-size: .78rem;
  font-weight: 700;
}

.thryl-size-chart-button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: #d6d6d6;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  min-height: 1.75rem;
  padding: .15rem 0;
  text-transform: uppercase;
}

.thryl-size-chart-button:hover {
  color: #fff;
}

.thryl-size-chart-button:focus-visible,
.thryl-size-chart-dialog__close:focus-visible,
.thryl-size-chart-dialog__scroll:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.thryl-size-chart-dialog {
  background: transparent;
  border: 0;
  color: #f7f7f7;
  height: auto;
  margin: auto;
  max-height: min(86vh, 48rem);
  max-width: min(94vw, 62rem);
  padding: 0;
  width: 100%;
}

.thryl-size-chart-dialog::backdrop {
  background: rgba(0, 0, 0, .84);
}

.thryl-size-chart-dialog__panel {
  background: #101010;
  border: 1px solid #414141;
  border-radius: 1rem;
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, .55);
  max-height: min(86vh, 48rem);
  overflow: hidden;
}

.thryl-size-chart-dialog__header {
  align-items: center;
  border-bottom: 1px solid #414141;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.thryl-size-chart-dialog__header > strong {
  color: #a1a1a1;
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.thryl-size-chart-dialog__close {
  align-items: center;
  appearance: none;
  background: #1c1c1c;
  border: 1px solid #696969;
  border-radius: 50%;
  color: #f7f7f7;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 2.75rem;
  font-size: 1.75rem;
  height: 2.75rem;
  justify-content: center;
  line-height: 1;
  padding: 0 0 .15rem;
  width: 2.75rem;
}

.thryl-size-chart-dialog__scroll {
  max-height: calc(min(86vh, 48rem) - 5rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.thryl-size-chart-dialog table {
  border-collapse: collapse;
  color: #f7f7f7;
  font-size: clamp(.58rem, 2.4vw, .86rem);
  margin: 0;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.thryl-size-chart-dialog th,
.thryl-size-chart-dialog td {
  border-bottom: 1px solid #303030;
  overflow-wrap: anywhere;
  padding: .75rem .2rem;
  text-align: center;
  white-space: normal;
}

.thryl-size-chart-dialog thead th {
  background: #1c1c1c;
  color: #fff;
  font-size: clamp(.48rem, 2vw, .68rem);
  letter-spacing: 0;
  overflow: hidden;
  overflow-wrap: normal;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 1;
}

.thryl-variation-chips__group[data-attribute*="size"] > .thryl-variation-chips__label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.thryl-size-chart-dialog tbody th {
  color: #fff;
  font-weight: 750;
}

.thryl-size-chart-dialog tbody tr:last-child th,
.thryl-size-chart-dialog tbody tr:last-child td {
  border-bottom: 0;
}

body.thryl-size-chart-is-open {
  overflow: hidden;
}

@media (min-width: 48rem) {
  .thryl-size-chart-dialog__header {
    padding: 1.25rem 1.5rem;
  }

  .thryl-size-chart-dialog th,
  .thryl-size-chart-dialog td {
    padding: 1rem .65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thryl-size-chart-button {
    transition: none;
  }
}
