/* Стили для всех кнопок свойств */
.t-product__option-item {
  border: 1px solid #000; /* чуть контрастнее */
  border-radius: 3px;
  font-size: 15px;
  font-weight: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 10px !important; /* отступы сверху/снизу 2px, слева/справа 10px */
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
  white-space: nowrap;
  box-sizing: border-box;
  user-select: none;
  background-color: transparent !important;
  flex-shrink: 0;
}

/* Отступы сверху и снизу у текста внутри кнопки */
.t-product__option-item span {
  padding-top: 2px;
  padding-bottom: 2px;
  display: inline-block;
  font-weight: normal; /* базовый вес */
}

/* Активная кнопка — рамка и фон */
.t-product__option-item.t-product__option-item_active {
  border: 1px solid #473C33 !important;
  background-color: #fff !important;
  color: #000 !important;
}

/* Убираем подсветку при checked, чтобы не конфликтовало */
.t-product__option-item input[type="radio"]:checked + span {
  background: none !important;
  color: inherit !important;
}

/* Отключённые размеры */
.t-product__option-item input[type="radio"]:disabled + span {
  opacity: 0.3;
  pointer-events: none;
}

/* Контейнер вариантов */
.t-product__option-variants_custom {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Мобильные стили */
@media (max-width: 480px) {
  .t-product__option-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .t-product__option-variants_custom {
    width: 91vw;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .t-product__option-item {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    margin: 0 0px;
  }
}





