/* Size Chart link beside the Size attribute title */
.single-product form.variations_form table.variations td.label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rz-size-chart-link-wrap {
  margin: 0;
  margin-left: auto;
  padding-left: 16px;
}

.rz-size-chart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.rz-size-chart-link-icon {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 16px;
}

.rz-size-chart-link-text {
  text-decoration: inherit;
}

.rz-size-chart-link:hover,
.rz-size-chart-link:focus {
  color: #111;
  text-decoration: underline;
}

/* Left drawer — same Razzi .rz-modal.side-left mechanism as mobile menu */
.rz-size-chart-modal .rz-size-chart-panel {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  overflow: hidden;
}

.rz-size-chart-modal .modal-header {
  position: relative;
  flex: 0 0 auto;
}

.rz-size-chart-modal .modal-content {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}

.rz-size-chart-modal .rz-size-chart-modal-body {
  padding: 0 4px;
}

/* Adidas-style size guide inside the product drawer */
.rz-size-guide__title {
  margin: 0 0 16px;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.rz-size-guide__note {
  margin: -8px 0 16px;
  color: #000;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.rz-size-guide__units {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 10px;
}

.rz-size-guide button.rz-size-guide__unit {
  appearance: none;
  display: inline-block;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #767677;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.rz-size-guide button.rz-size-guide__unit.is-active {
  color: #000;
  border-bottom-color: #000;
  background: transparent;
}

.rz-size-guide button.rz-size-guide__unit:hover,
.rz-size-guide button.rz-size-guide__unit:focus {
  color: #000;
  background: transparent;
}

.rz-size-guide button.rz-size-guide__unit:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.rz-size-guide__scroll-hint {
  margin: 0 0 8px;
  color: #767677;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.rz-size-guide__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.rz-size-guide table.rz-size-guide__table {
  width: max-content;
  min-width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #000;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.rz-size-guide table.rz-size-guide__table th,
.rz-size-guide table.rz-size-guide__table td {
  border: 0;
  padding: 8px 12px;
  white-space: nowrap;
  vertical-align: middle;
}

.rz-size-guide table.rz-size-guide__table th {
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.rz-size-guide table.rz-size-guide__table td {
  background: #fff;
  color: #000;
  font-weight: 400;
  text-align: center;
  border-bottom: 1px solid #ececec;
}

.rz-size-guide table.rz-size-guide__table td:nth-child(2) {
  background: #f3f3f3;
}

.rz-size-guide table.rz-size-guide__table th:first-child,
.rz-size-guide table.rz-size-guide__table td:first-child {
  position: sticky;
  left: 0;
  min-width: 88px;
  text-align: left;
}

.rz-size-guide table.rz-size-guide__table th:first-child {
  z-index: 2;
  background: #000;
}

.rz-size-guide table.rz-size-guide__table td:first-child {
  z-index: 1;
  background: #fff;
  font-weight: 700;
  box-shadow: 1px 0 0 #e8e8e8;
}

.rz-size-guide table.rz-size-guide__table th:not(:first-child),
.rz-size-guide table.rz-size-guide__table td:not(:first-child) {
  min-width: 72px;
}

.rz-size-guide__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 16px;
}

.rz-size-guide + .rz-size-guide {
  margin-top: 28px;
}

.rz-size-chart-modal .pscw-container {
  max-width: 100%;
}

.rz-size-chart-modal .woo_sc_table_scroll,
.rz-size-chart-modal .woo_sc_table100 {
  max-width: 100%;
  overflow-x: auto;
}

.rz-size-chart-modal table.woo_sc_view_table {
  width: 100%;
}

@media (max-width: 767px) {
  .rz-size-chart-modal .rz-size-chart-panel {
    max-width: 100%;
  }
}

/* All size charts page ([rz_all_size_charts]) */
.rz-all-size-charts {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.rz-all-size-charts__item {
  margin: 0;
}

.rz-all-size-charts__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}

.rz-all-size-charts__body {
  width: 100%;
  overflow-x: auto;
}

.rz-all-size-charts__body .pscw-container {
  max-width: 100%;
}

.rz-all-size-charts__empty {
  margin: 0;
  color: #555;
}