.tooltip-custom {
  overflow: hidden;
}
.tooltip-custom:hover {
  overflow: visible;
}
.tooltip-custom:hover .tooltip-custom-content {
  opacity: 1;
}
.tooltip-custom .tooltip-custom-content {
  background-color: var(--green);
  border-radius: 8px;
  box-sizing: border-box;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 1px;
  max-width: 200px;
  min-width: 180px;
  padding: 1em;
  position: absolute;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px 0 rgb(0 0 0 / 25%), 0 3px 10px 5px rgb(0 0 0 / 5%);
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.tooltip-custom .tooltip-custom-content::after {
  background-color: var(--green);
  content: "";
  height: 10px;
  position: absolute;
  transform: rotate(45deg);
  width: 10px;
}

.tooltip-custom.top .tooltip-custom-content {
  bottom: calc(100% + 1.5em);
  left: 30%;
  transform: translateX(-30%);
}
.tooltip-custom.top .tooltip-custom-content::after {
  bottom: -5px;
  left: 30%;
}

.tooltip-custom.bottom .tooltip-custom-content {
  top: calc(100% + 1.5em);
  left: 30%;
  transform: translateX(-30%);
}
.tooltip-custom.bottom .tooltip-custom-content::after {
  top: -5px;
  left: 30%;
}

.tooltip-custom.right .tooltip-custom-content {
  left: calc(100% + 1.5em);
  top: 50%;
  transform: translateY(-30%);
}
.tooltip-custom.right .tooltip-custom-content::after {
  left: -5px;
  margin-top: -5px;
  top: 30%;
}

.tooltip-custom.left .tooltip-custom-content {
  right: calc(100% + 1.5em);
  top: 50%;
  transform: translateY(-30%);
}
.tooltip-custom.left .tooltip-custom-content::after {
  right: -5px;
  margin-top: -5px;
  top: 30%;
}

/* Tooltip Bootstap */

.tooltip .tooltip-inner {
  background-color: var(--secondary-color);
}

.tooltip {
  --bs-tooltip-bg: var(--secondary-color);
}
