/* N-WEB Стікери — стикеры поверх картинки товара. Цвета — из настроек стикера (style), формы — классы. */
.nwst-host { position: relative; }
.nwst-corner {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(100% - 16px);
  pointer-events: none;
}
.nwst-corner--tl { top: 8px; left: 8px; align-items: flex-start; }
.nwst-corner--tr { top: 8px; right: 8px; align-items: flex-end; }
.nwst-corner--bl { bottom: 8px; left: 8px; align-items: flex-start; flex-direction: column-reverse; }
.nwst-corner--br { right: 8px; bottom: 8px; align-items: flex-end; flex-direction: column-reverse; }

.nwst {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: .01em;
}
.nwst--badge { padding: 3px 8px; border-radius: 6px; }
.nwst--pill { padding: 3px 10px; border-radius: 999px; }
.nwst--circle {
  flex: none;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 5px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
}
.nwst--image { display: block; width: auto; max-width: 100%; background: none; }

/* Угол, где уже есть лента: остальные стикеры отступают от неё */
.nwst-corner--tl.nwst-corner--ribbon, .nwst-corner--tr.nwst-corner--ribbon, .nw-card__badges.nwst-corner--ribbon { top: 104px; }
.nwst-corner--bl.nwst-corner--ribbon, .nwst-corner--br.nwst-corner--ribbon { bottom: 104px; }

/* Лента через угол: обёртка обрезает повёрнутую полосу, картинку товара не трогаем */
.nwst-ribbon { position: absolute; z-index: 3; width: 112px; height: 112px; overflow: hidden; pointer-events: none; }
.nwst-ribbon--tl { top: 0; left: 0; }
.nwst-ribbon--tr { top: 0; right: 0; }
.nwst-ribbon--bl { bottom: 0; left: 0; }
.nwst-ribbon--br { right: 0; bottom: 0; }
.nwst--ribbon { position: absolute; width: 170px; max-width: none; padding: 4px 40px; font-size: 11px; text-align: center; text-overflow: clip; }
.nwst-ribbon--tl .nwst--ribbon { top: 28px; left: -44px; transform: rotate(-45deg); }
.nwst-ribbon--tr .nwst--ribbon { top: 28px; right: -44px; transform: rotate(45deg); }
.nwst-ribbon--bl .nwst--ribbon { bottom: 28px; left: -44px; transform: rotate(45deg); }
.nwst-ribbon--br .nwst--ribbon { right: -44px; bottom: 28px; transform: rotate(-45deg); }

/* Страница товара: «крупні» стикери */
.nwst-lg .nwst { font-size: 14px; }
.nwst-lg .nwst--badge, .nwst-lg .nwst--pill { padding: 5px 12px; }
.nwst-lg .nwst--circle { width: 66px; height: 66px; font-size: 13px; }
.nwst-lg .nwst-corner { top: 12px; gap: 6px; }
.nwst-lg .nwst-corner--tl, .nwst-lg .nwst-corner--bl { left: 12px; }
.nwst-lg .nwst-corner--tr, .nwst-lg .nwst-corner--br { right: 12px; }
.nwst-lg .nwst-corner--bl, .nwst-lg .nwst-corner--br { top: auto; bottom: 12px; }

/* В колонке значков Nova стикеры встают рядом с её значками */
.nw-card__badges .nwst { pointer-events: none; }

/* Лимит на карточке и значки «Доставка в товарі» в нашем углу */
.nwst-over { display: none !important; }
.nwst-corner > .nwdi-badge { position: static; box-shadow: none; }

/* Тема Nova: включённые «Знижка» и «Новинка» заменяют её значки скидки и новинки */
.nwst-hide-sale .nw-card__badges > .nw-badge:not(.nw-badge--new):not(.nwdi-badge):not(.nwst) { display: none; }
.nwst-hide-new .nw-card__badges > .nw-badge--new { display: none; }

/* Nova: в правом верхнем углу кнопки «Обране» и «Порівняння» — стикеры левее, лента под ними */
.nwst-has-marks > .nwst-corner--tr { right: 52px; }
.nwst-has-marks > .nwst-ribbon { z-index: 0; }

/* Стандартная тема 4.x: главная картинка товара — внутри строчной ссылки, стикерам нужен её размер */
.magnific-popup > a.nwst-host { display: inline-block; }
