:root {
  --brand: #19f000;
}

/* --- ОСНОВНОЙ КОНТЕЙНЕР --- */
.t-product__option-variants_custom {
  display: flex !important;
  flex-wrap: wrap !important;
  flex-direction: row !important;
  gap: 8px !important;
  margin-top: 5px !important; /* Уменьшили отступ сверху */
  margin: 0 !important;
}

/* --- Заголовок "Размер" - оставляем белым --- */
.js-product-edition-option-name.t-product__option-title {
  color: #ffffff !important; /* Явно указываем белый цвет */
  margin-bottom: 8px !important; /* Добавляем отступ снизу */
}

/* --- Сбрасываем стили для кнопок --- */
.t-product__option-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 16px !important;     
  border-radius: 30px !important;    
  border: 2px solid var(--brand) !important; 
  background: transparent !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  
  width: auto !important;
  margin-bottom: 0 !important;
  min-height: auto !important;
  position: relative !important;
}

/* --- Убрать видимый оригинальный input --- */
.t-product__option-input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

/* --- Скрываем стандартные чекмарки --- */
.t-product__option-checkmark {
  display: none !important;
}

/* --- Стиль текста ТОЛЬКО для вариантов (кнопок) --- */
.t-product__option-variants_custom .t-product__option-title {
  color: var(--brand) !important; 
  font-size: 16px !important; 
  line-height: 1 !important;
  user-select: none !important;
  margin: 0 !important;
}

/* --- Hover эффект --- */
.t-product__option-item:hover {
  background: var(--brand) !important; 
  border-color: var(--brand) !important;
}
.t-product__option-item:hover .t-product__option-title {
  color: #ffffff !important;
}

/* --- Активное состояние --- */
.t-product__option-item.t-product__option-item_active {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
}
.t-product__option-item.t-product__option-item_active .t-product__option-title {
  color: #ffffff !important;
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
  .t-product__option-variants_custom {
    gap: 6px !important;
  }
  
  .t-product__option-item {
    padding: 8px 12px !important;
    font-size: 14px !important;
    flex: 0 0 auto !important;
  }
  
  .t-product__option-variants_custom .t-product__option-title {
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .t-product__option-item {
    padding: 6px 10px !important;
    font-size: 13px !important;
  }
  
  .t-product__option-variants_custom .t-product__option-title {
    font-size: 13px !important;
  }
}

.t1261__fixed-menu {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #1a2026 !important;
    border-top: 0px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    height: auto !important;
    min-height: 60px !important;
}

.t1261__menu-widgets {
    width: 100% !important;
    overflow-x: hidden !important;
}

.t-menuwidgeticons__wrapper {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    justify-content: space-around !important;
}

.t-menuwidgeticons__icon {
    flex: 1 !important;
    text-align: center !important;
    min-width: 0 !important;
}

.t-menuwidgeticons__link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    padding: 10px 5px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 50px !important;
}

.t-menuwidgeticons__img {
    margin-bottom: 8px !important;
}

.t-menuwidgeticons__text {
    font-size: 12px !important;
    line-height: 1.2 !important;
}

/* Дополнительные стили для предотвращения горизонтальной прокрутки на всем сайте */
body {
    overflow-x: hidden !important;
}

html {
    overflow-x: hidden !important;
}