/* Контейнер для наших кнопок */
.tgmp__market-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Кнопка маркетплейса */
.tgmp__market-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;

  will-change: transform;
}

.tgmp__market-btn:hover { transform: translateY(-1px); opacity: .92; }
.tgmp__market-btn:active { transform: translateY(0); opacity: .88; }

/* Иконка слева */
.tgmp__market-btn svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* Цвета брендов */
.tgmp__market-btn--ozon { background: #fafafa; }
.tgmp__market-btn--wb   { background: #fafafa; }
.tgmp__market-btn--ym   { background: #fafafa; color:#222; }

/* Размещение в карточке (сетка каталога) */
.t-store__card__wrap_txt .tgmp__market-buttons { margin-top: 12px; }

/* Размещение в попапе товара */
.t-store__prod-popup__info .tgmp__market-buttons { margin-top: 14px; }

.tgmp__market-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.tgmp__market-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;

}
.tgmp__market-btn:hover { transform: translateY(-1px); opacity: .92; }
.tgmp__market-btn:active { transform: translateY(0); opacity: .88; }
.tgmp__market-btn svg { width: 32px; height: 32px; display: block; }
.tgmp__market-btn--ozon { background: #E9E9E9; }
.tgmp__market-btn--wb   { background: #E9E9E9; }
.tgmp__market-btn--ym   { background: #E9E9E9; color:#222; }

.t-store__card__btns-wrapper .tgmp__market-buttons { margin-top: 10px; }
.t-store__card__wrap_txt .tgmp__market-buttons { margin-top: 12px; }
.t-store__prod-popup__info .tgmp__market-buttons { margin-top: 14px; }


/* уже добавленные стили можно не трогать */
.t-store__card__btns-wrapper .tgmp__market-buttons { margin-top: 10px; }

.t-store__prod-popup__btns-wrapper .tgmp__market-buttons,
.t-store__prod-popup__btns .tgmp__market-buttons,
.t-store__prod-popup__btn .tgmp__market-buttons {
  margin: 0 0 10px 0; /* над BUY NOW */
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* На узких экранах — столбцом, чтобы не ломать сетку */
@media (max-width: 640px) {
  .t-store__prod-popup__btns-wrapper .tgmp__market-buttons,
  .t-store__prod-popup__btns .tgmp__market-buttons {
    gap: 6px;
  }
}

/* цвет текста и иконок в кнопках маркетплейсов */
.tgmp__market-btn {
  color: #fff !important; /* белый текст */
}

.tgmp__market-btn svg path {
  fill: currentColor !important; /* иконки того же цвета, что и текст */
}

.tgmp__market-btn--ym { color: #222 !important; } /* чёрный текст на жёлтом */



/* убираем кнопку покупки */
.t-store__card__btn-wrapper,
.t-store__prod-popup__btn-wrapper {
  display: none !important;
}


/* Центрирование кнопок в карточках каталога */
.t-store__card__wrap_txt .tgmp__market-buttons,
.t-store__card__btns-wrapper .tgmp__market-buttons {
  width: 100%;
  justify-content: center;
  align-content: center; /* если кнопки переносятся на следующую строку */
}

/* Центрирование в попапе товара */
.t-store__prod-popup__btns-wrapper .tgmp__market-buttons,
.t-store__prod-popup__btns .tgmp__market-buttons,
.t-store__prod-popup__btn .tgmp__market-buttons {
  width: 100%;
  justify-content: center;
  align-content: center;
}

/* На всякий случай: сам контейнер остаётся flex и умеет переноситься */
.tgmp__market-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tgmp__market-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 10px;
}

/* Центрируем только в карточках каталога */
.t-store__card__wrap_txt .tgmp__market-buttons,
.t-store__card__btns-wrapper .tgmp__market-buttons {
  justify-content: center !important;
  align-items: center !important;
}

/* А в попапе — возвращаем выравнивание влево */
.t-store__prod-popup__info .tgmp__market-buttons {
  justify-content: flex-start !important;
  align-items: flex-start !important;
}


/* гарантируем, что сами кнопки кликабельны поверх карточки */
.tgmp__market-buttons .tgmp__market-btn { position: relative; z-index: 2; }



.tgmp__market-buttons .tgmp__market-btn { position: relative; z-index: 2; }


/* вид превьюшки товара около радиобатон */
.js-product .t-product__option-variants_radio .t-product__option-checkmark_radio.t-product__option-checkmark_image{
background-position: center;
    background-size: contain;
}




/* Десктоп: крупнее иконки */
.tgmp__market-btn svg,
.tgmp__market-btn img {
  width: 32px !important;
  height: 32px !important;
  display: block;
  flex-shrink: 0;
}

/* Чуть повыше кнопка под увеличенную иконку (если нужно) */
.tgmp__market-btn {
  padding: 9px 16px !important;
  align-items: center;
}

/* Мобилка: возвращаем старый размер иконок */
@media (max-width: 640px) {
  .tgmp__market-btn svg,
  .tgmp__market-btn img {
    width: 18px !important;
    height: 18px !important;
  }

  /* И при желании — чуть компактнее по высоте */
  .tgmp__market-btn {
    padding: 6px 14px !important;
  }
}
