.popups.popup-new-table-sizes {
  cursor: default;
  width: 100%;
  max-width: 595px;
  max-height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  margin: 0;
  overflow-y: auto;
  pointer-events: none;
}

.popups.popup-new-table-sizes.active {
  pointer-events: all;
}

.popups.popup-new-table-sizes .close {
  display: flex;
  padding: 15px;
  z-index: 3;
}

.table-size-wrap {
  padding: 45px;
}

.table-size .table-subtitle {
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  color: #000000;
}

.table-size .table-head {
  display: grid;
  grid-template-columns: 1fr 168px;
  gap: 29px;
  margin-bottom: 46px;
}

.table-size .table-head .table-image {
  margin-top: 14px;
}

.table-size .table-image .image {
  position: relative;
  height: 0;
  padding-bottom: 139.26%;
}

.table-size .table-image .image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-size .table-head .table-info-title {
  margin-bottom: 30px;
}

.table-size .table-head .table-info-title h3 {
  font-weight: 600;
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
  color: #000000;
  letter-spacing: 0.2px;
}

.table-size .table-head .table-info-item.choose {
  margin-bottom: 37px;
}

.table-size .table-head .table-info-item .table-subtitle {
  margin-bottom: 23px;
}

.table-size .table-head .table-info-item.choose .choose-item {
  display: grid;
  grid-template-columns: 52px minmax(100px, 250px) minmax(46px, 56px);
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.table-size .table-head .table-info-item.choose .choose-item.height {
  margin-bottom: 20px;
}

.table-size .table-head .table-info-item.choose .choose-item .choose-item__title,
.table-size .table-head .table-info-item.choose .choose-item .choose-item__value {
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  text-transform: uppercase;
  white-space: nowrap;
  color: #000000;
}

.table-size .table-head .table-info-item.choose .choose-item .choose-item__value {
  display: flex;
  align-items: center;
  gap: 3px;
}

.table-size .table-head .table-info-item.choose .choose-item .choose-item__value .value {
  border: none;
  width: 100%;
  max-width: 27px;
  background: none;
}

.table-size .table-head .table-info-item.choose .choose-item .choose-item__value .value::-webkit-outer-spin-button,
.table-size .table-head .table-info-item.choose .choose-item .choose-item__value .value::-webkit-inner-spin-button {
  display: none;
  -webkit-appearance: none;
  margin: 0;
}

.table-size .table-head .table-info-item.choose .choose-item .choose-item__line {
  cursor: pointer;
  width: 100%;
  max-width: 256px;
  border-bottom: 1px solid #000000;
  border-top: none;
  border-left: none;
  border-right: none;
  height: 14px;
  border-radius: unset;
  margin-bottom: 10px;
}

.table-size .table-head .table-info-item .choose-item .choose-item__line .ui-slider-handle {
  width: 15px;
  height: 15px;
  border: none;
  border-radius: unset;
  background: none;
  top: -2px;
  margin-left: -7px;
}

.table-size .table-head .table-info-item .choose-item .choose-item__line .ui-slider-handle:after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  width: 1px;
  height: 7px;
}

.table-size .table-head .table-info-item .choose-item .choose-item__line .choose-item__label {
  cursor: pointer;
  display: inline-block;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  color: #8D8D8D;
  padding-top: 4px;
}

.table-size .table-head .table-info-item.fit {
  margin-bottom: 26px;
}

.table-size .table-head .table-info-item.fit .table-subtitle {
  margin-bottom: 17px;
}

.table-size .table-head .table-info-item.fit .fit-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #c4c4c4;
}

.table-size .table-head .table-info-item.fit .fit-line .fit-line__item {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  padding: 5px;
  transition: all 0.2s ease;
}

.table-size .table-head .table-info-item.fit .fit-line .fit-line__item span {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  text-transform: uppercase;
  padding: 3px 0;
  color: #000000;
}

.table-size .table-head .table-info-item.fit .fit-line .fit-line__item:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: all 0.2s ease;
}

.table-size .table-head .table-info-item.fit .fit-line .fit-line__item:not(.active):hover {
  opacity: 0.5;
}

.table-size .table-head .table-info-item.fit .fit-line .fit-line__item.active:after {
  background: #000000;
}

.table-size .table-info-btn {
  white-space: nowrap;
  width: 100%;
  font-weight: 500;
  height: 40px;
  line-height: 40px;
}

.table-size .table-info-btn:hover {
  opacity: 1;
}

.table-size .table-info {
  position: relative;
}

.table-size .table-result {
  position: absolute;
  top: -2px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 3px);
  background: #fff;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  z-index: 2;
}

.table-size .table-result.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.popups.popup-new-table-sizes:not(.active) .table-size .table-result.active {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.table-size .table-result__wrap {
  position: relative;
  height: 100%;
}

.table-size .table-result .table-result__title {
  font-weight: 600;
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
  color: #000000;
  letter-spacing: 0.2px;
  margin-bottom: 40px;
}

.table-size .table-result .table-result__result,
.table-size .table-result .table-result__result .result-value {
  font-weight: 600;
  font-size: 50px;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  color: #000000;
}

.table-size .table-result .table-result__error {
  display: none;
  text-align: center;
  margin-top: 25px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1;
  color: #000000;
}

.table-size .table-result .table-result__error.active {
  display: block;
}

.table-size .table-result .table-info-btn .result-value {
  font-weight: 500;
  font-size: 14px;
  line-height: 46px;
  color: #fff;
  transition: 0.2s ease;
}

.table-size .table-result .table-info-btn:hover .result-value {
  color: #1A1A1A;
}

.table-size .table-result .table-result-bot {
  width: 100%;
  position: absolute;
  bottom: 0;
  line-height: 1;
}

.table-size .table-result .table-result-bot__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.table-size .table-result .table-restart {
  white-space: nowrap;
  font-weight: 500;
  background-color: transparent !important;
  color: #1a1a1a !important;
}

.table-size .table-result .table-restart:hover {
  opacity: 1;
  background-color: #1A1A1A !important;
  color: #FFFFFF !important;
}

.table-size .table-content .table-content-item.clothes {
  margin-bottom: 27px;
}

.table-size .table-content .table-content-item .table-subtitle {
  margin-bottom: 18px;
}

.table-size .table-content .table-content-item .table-content-size {
  display: grid;
}

.table-size .table-content .table-content-item.clothes .table-content-size {
  grid-template-columns: 179px repeat(5, 1fr);
  gap: 3px;
}

.table-size .table-content .table-content-item.denim .table-content-size {
  grid-template-columns: 179px repeat(6, 1fr);
  gap: 3px;
}

.table-size .table-content .table-content-item.hats .table-content-size {
  grid-template-columns: 179px repeat(2, 1fr);
  gap: 3px;
}

.table-size .table-content .table-content-item .table-column .table-cell {
  display: flex;
  justify-content: center;
  align-items: center;

  font-weight: 300;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  color: #444444;
  background: #FAF9FA;
  border-radius: 4px;
  padding: 6px 15px 5px;
  margin-bottom: 3px;
}

.table-size .table-content .table-content-item .table-column .table-cell:last-child {
  margin-bottom: 0;
}

.table-size .table-content .table-content-item .table-column .table-cell:first-child,
.table-size .table-content .table-content-item .table-column .table-cell:nth-child(2) {
  background: #EFEFF0;
  color: #1F1F1F;
}

.table-size .table-content .table-content-item.denim .table-column .table-cell:nth-child(2) {
  color: #444444;
  background: #FAF9FA;
}

.table-size .table-content .table-content-item .table-column:first-child .table-cell {
  justify-content: left;
  padding-left: 6px;
}

@media only screen and (max-width: 768px) {
  .popups.popup-new-table-sizes {
    max-width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: scale(0.98);
  }

  .popup-new-table-sizes.active {
    transform: scale(1) !important;
  }

  .table-size-wrap {
    overflow: auto;
    height: 100%;
    padding: 40px 15px;
  }

  .table-size .table-head .table-info-item.choose .choose-item {
    grid-template-columns: 52px minmax(100px, 1fr) minmax(46px, 56px);
    gap: 10px;
  }

  .table-size .table-head .table-info-item.choose .choose-item .choose-item__line {
    max-width: 100%;
  }

  .table-size .table-head {
    grid-template-columns: 1fr;
    margin-bottom: 36px;
  }

  .table-size .table-head .table-image {
    display: none;
  }

  .table-size .table-head .table-info-item.fit {
    margin-bottom: 36px;
  }

  .table-size .table-result .table-result-bot__wrap {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .table-size .table-content .table-content-item.clothes .table-content-size {
    grid-template-columns: auto repeat(5, 1fr);
    gap: 2px;
  }

  .table-size .table-content .table-content-item.denim .table-content-size {
    grid-template-columns: auto repeat(6, 1fr);
    gap: 2px;
  }

  .table-size .table-content .table-content-item.hats .table-content-size {
    gap: 2px;
  }

  .table-size .table-content .table-content-item .table-column .table-cell {
    font-size: 10px;
    padding: 4px 8px;
    margin-bottom: 2px;
  }

  .table-size .table-result .table-info-btn .result-value {
    line-height: 43px;
  }

}

@media only screen and (max-width: 374px) {
  .table-size .table-content .table-content-item .table-column .table-cell {
    font-size: 10px;
  }
}
