/* UX_FIX_13: подсказка характеристики на витрине — тултип (js/addons/go4trans_design/feature_tip.js).
   Подключается в <head> хуком index:head_scripts: {style src="addons/go4trans_design/feature_tip.css?v=N"}.
   Видимость — только классом .is-open (ставит JS), без :hover: на телефоне нет «залипшего» hover.
   Скрытая — display: none: иначе она в раскладке (left: 0 от иконки + ширина) и на 390 расширяет страницу (масштаб телефона сбивается).
   z-index 20 — над соседним текстом, ниже нижних панелей телефона (150), уведомлений (1022) и оверлея ajax (10000). */

/* display у .ty-help-info — как в ядре (inline): вид строки «OE Number ? :» не меняется; position — опора для подсказки */
.g4t-ftip-wrap {
  position: relative;
}

.g4t-ftip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  box-sizing: border-box;
  width: max-content;
  max-width: min(280px, calc(100vw - 16px));
  padding: 8px 12px;
  border-radius: 8px;
  background: #23252b;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  display: none;
}

.g4t-ftip.is-open {
  display: block;
}

.g4t-ftip.is-above {
  top: auto;
  bottom: calc(100% + 8px);
}

/* мостик над зазором: курсор от иконки к подсказке не «уходит» */
.g4t-ftip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.g4t-ftip.is-above::before {
  top: auto;
  bottom: -10px;
}

/* стрелка — под центром иконки (--g4t-ftip-arrow ставит JS) */
.g4t-ftip::after {
  content: "";
  position: absolute;
  top: -5px;
  left: var(--g4t-ftip-arrow, 16px);
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: #23252b;
  transform: rotate(45deg);
}

.g4t-ftip.is-above::after {
  top: auto;
  bottom: -5px;
}

/* тема: «body, p, div, li { color: …; font-size: 16px }» бьёт прямо по <p> из full_description — наследуем от подсказки */
.g4t-ftip * {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.g4t-ftip p {
  margin: 0;
}

.g4t-ftip p + p {
  margin-top: 6px;
}

.g4t-ftip-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 50%;
}
