/* Модальное окно таблицы размеров — стиль VIP Avenue */

.size-chart-modal .modal-dialog {
  max-width: 520px;
}

.size-chart-modal .modal-content {
  border: none;
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 0;
  position: relative;
  background: #fff;
}

.size-chart-modal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: #222;
  cursor: pointer;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}

.size-chart-modal__close:hover {
  color: #000;
  opacity: 0.75;
}

.size-chart-modal__close:focus,
.size-chart-modal__close:focus-visible,
.size-chart-modal__close:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

.size-chart-modal__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.size-chart-modal__body {
  padding: 3.75rem 2.25rem 3.5rem !important;
}

@media (max-width: 575.98px) {
  .size-chart-modal .modal-dialog {
    margin: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .size-chart-modal__body {
    padding: 3.25rem 1.5rem 3rem !important;
  }
}

.size-chart-widget {
  text-align: center;
  color: #111;
  font-family: inherit;
}

.size-chart-widget__title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
}

.size-chart-widget__category {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: #8a8a8a;
  font-weight: 400;
}

.size-chart-widget__picker-label {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #9a9a9a;
}

.size-chart-widget__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  margin: 0 0 2rem;
  padding: 0 0.25rem;
}

.size-chart-chip {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.15rem 0.1rem;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #111;
  cursor: pointer;
  transition: color 0.15s ease, font-weight 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.size-chart-chip:hover {
  color: #8b6914;
}

.size-chart-chip.is-active {
  color: #9a7b2f;
  font-weight: 600;
}

.size-chart-chip:focus,
.size-chart-chip:focus-visible {
  outline: none;
  box-shadow: none;
}

.size-chart-widget__table-label {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: #9a9a9a;
}

.size-chart-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 1.25rem;
  text-align: left;
  max-width: 420px;
  margin: 0 auto 0.5rem;
}

.size-chart-grid__divider {
  width: 1px;
  background: #e8e8e8;
  min-height: 100%;
}

.size-chart-col {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.size-chart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

.size-chart-row.is-primary .size-chart-row__label {
  color: #111;
  font-weight: 500;
}

.size-chart-row.is-primary .size-chart-row__value {
  font-weight: 600;
}

.size-chart-row__label {
  color: #8f8f8f;
  min-width: 0;
}

.size-chart-row__code {
  color: #b0b0b0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-left: 0.2rem;
}

.size-chart-row__value {
  color: #111;
  font-weight: 500;
  white-space: nowrap;
}

.size-chart-row__value.is-empty {
  color: #ccc;
  font-weight: 400;
}

@media (max-width: 420px) {
  .size-chart-grid {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 100%;
  }

  .size-chart-grid__divider {
    display: none;
  }

  .size-chart-col + .size-chart-col {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid #ececec;
  }

  .size-chart-chip {
    font-size: 1rem;
  }
}
