/* ---------- Product badges (status + promo) — mobile & desktop ---------- */
:root {
  --mm-badge-h: 19.25px;
  --mm-badge-radius: 6px;
  --mm-badge-pad-x: 8px;
  --mm-badge-fs: 10px;
  --mm-badge-fw: 600;
  --mm-badge-brand: #ec670b;
  /* В наличии */
  --mm-badge-in-stock-bg: #e1f2e6;
  --mm-badge-in-stock-fg: #5bac46;
  /* В пути */
  --mm-badge-in-transit-bg: #ffd0b4;
  --mm-badge-in-transit-fg: var(--mm-badge-brand);
  /* Под заказ / нет в наличии */
  --mm-badge-out-bg: #868686;
  --mm-badge-out-fg: #fff;
  /* Акция */
  --mm-badge-action-bg: #3faa62;
  --mm-badge-action-fg: #fff;
  /* Скидка */
  --mm-badge-discount-bg: #0753aa;
  --mm-badge-discount-fg: #fff;
  /* Рассрочка */
  --mm-badge-installment-bg: #FF5D5D;
  --mm-badge-installment-fg: #fff;
  /* Хит / Новинка (без отдельного ТЗ — фирменные) */
  --mm-badge-hit-bg: var(--mm-badge-brand);
  --mm-badge-hit-fg: #fff;
  --mm-badge-new-bg: #f37021;
  --mm-badge-new-fg: #fff;
}

.shields_container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.shild_item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 0;
}

.shild_item img {
  display: none;
}

/* Unified badge base: status tags + CSS promo shields */
.mm-badge,
.card-product__tag-option.tag,
.card-product__badges .tag.tag_sm,
.shields_container .mm-badge,
.card-product__installment-badge.tag {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: max-content;
  height: var(--mm-badge-h);
  min-height: var(--mm-badge-h);
  max-height: var(--mm-badge-h);
  margin: 0;
  padding: 0 var(--mm-badge-pad-x);
  border: 0;
  border-radius: var(--mm-badge-radius);
  font-size: var(--mm-badge-fs);
  font-weight: var(--mm-badge-fw);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  color: #fff;
  background: #868686;
  box-shadow: none;
}

/* Status */
.mm-badge_stock,
.card-product__tag-option.tag_green,
.card-product__badges .tag.tag_green {
  color: var(--mm-badge-in-stock-fg);
  background: var(--mm-badge-in-stock-bg);
}

.mm-badge_transit,
.card-product__tag-option.tag_sale,
.card-product__badges .tag.tag_sale {
  color: var(--mm-badge-in-transit-fg);
  background: var(--mm-badge-in-transit-bg);
}

/* Под заказ / нет в наличии */
.mm-badge_order,
.mm-badge_ended,
.mm-badge_out,
.card-product__tag-option.tag_yellow,
.card-product__tag-option.tag_red,
.card-product__badges .tag.tag_yellow,
.card-product__badges .tag.tag_red {
  color: var(--mm-badge-out-fg);
  background: var(--mm-badge-out-bg);
}

/* Promo */
.mm-badge_hit,
.shields_container .mm-badge_hit,
.mm-badge.mm-badge_hit {
  color: var(--mm-badge-hit-fg);
  background: var(--mm-badge-hit-bg);
}

.mm-badge_action,
.shields_container .mm-badge_action,
.mm-badge.mm-badge_action {
  color: var(--mm-badge-action-fg);
  background: var(--mm-badge-action-bg);
}

.mm-badge_discount,
.shields_container .mm-badge_discount,
.mm-badge.mm-badge_discount {
  color: var(--mm-badge-discount-fg);
  background: var(--mm-badge-discount-bg);
}

.mm-badge_new,
.shields_container .mm-badge_new,
.mm-badge.mm-badge_new {
  color: var(--mm-badge-new-fg);
  background: var(--mm-badge-new-bg);
}

.mm-badge_installment,
.shields_container .mm-badge_installment,
.mm-badge.mm-badge_installment,
.card-product__installment-badge,
.card-product__installment-badge.tag,
.card-product__badges .mm-badge_installment {
  color: #fff !important;
  background: #FF5D5D !important;
}

/* Related / specs card tags — same badge language */
.product-specs__card-tag {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--mm-badge-h);
  min-height: var(--mm-badge-h);
  max-height: var(--mm-badge-h);
  padding: 0 var(--mm-badge-pad-x);
  border-radius: var(--mm-badge-radius);
  font-size: var(--mm-badge-fs);
  font-weight: var(--mm-badge-fw);
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}

.product-specs__card-tag_stock {
  color: var(--mm-badge-in-stock-fg);
  background: var(--mm-badge-in-stock-bg);
}

.product-specs__card-tag_sale {
  color: var(--mm-badge-discount-fg);
  background: var(--mm-badge-discount-bg);
}

.card-product__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.card-product__badges .card-product__tag-option {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

.shields_container,
.card-product__badges {
  overflow: visible;
}

.mm-badge {
  position: relative;
  overflow: visible;
  pointer-events: auto;
}

.mm-badge.is-link {
  cursor: pointer;
}

.mm-badge__tip {
  display: none;
}

.mm-badge-float-tip {
  position: fixed;
  z-index: 10050;
  left: 0;
  top: 0;
  display: none;
  box-sizing: border-box;
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff;
  color: #161d28;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: normal;
  text-align: left;
  box-shadow: 0 8px 22px rgba(22, 29, 40, 0.18);
  pointer-events: none;
}

.mm-badge-float-tip.is-visible {
  display: block;
}

/* UTP / dop_shelds — keep scroll strip; radius aligned to 6px */
.dop-shelds-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.dop-shelds-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 0 10px 0;
  padding-right: 40px;
  gap: 8px;
}

.dop-shelds-scroll::-webkit-scrollbar {
  display: none;
}

.dop-shelds-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to right, transparent, #ffffff);
  z-index: 1;
}

.dop-sheld-item {
  display: inline-block;
  flex-shrink: 0;
  background-color: #ec670b;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.4;
  text-align: center;
}
