
/*
  Круг иконки
*/
.tooltip-circle {
    width: 20px;
    height: 20px;
    border-radius: 100px;
    border: 2px solid var(--color-text-secondary);
    color: black;
}

/*
  Доп селекторы к tooltip-circle для переопределения размера
*/
.tooltip-circle--small {
    width: 16px;
    height: 16px;
}

.tooltip-circle--large {
    width: 24px;
    height: 24px;
}

/* 
  Селектор для i внутри tooltip-circle
*/
.tooltip-circle__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: normal;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-secondary);
    width: 100%;
    height: 100%;
}

/*
  Вариации размера символа i в иконке
*/
.tooltip-circle--small .tooltip-circle__icon {
    font-size: 12px;
}

.tooltip-circle--large .tooltip-circle__icon {
    font-size: 18px;
}

.info-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.info-tooltip::after {
  content: attr(tip); 
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  margin-bottom: 10px;
  min-width: 300px;
  max-width: min(300px, calc(100vw - 40px));
  background-color: #fff;
  color: black;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1rem;
  font-weight: 500;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-tooltip:hover::after {
  visibility: visible;
  opacity: 1;
}

.info-tooltip.tooltip-right::after {
  left: 0;
  transform: none;
  right: auto;
}

.info-tooltip.tooltip-left::after {
  left: auto;
  right: 0;
  transform: none;
}