.tooltips-component {
  --tooltips-path-opacity: 0.2;
  width: 100%;  
}

.tooltips-wrapper {
  position: relative;
  width: 100%;
}

.tooltips-wrapper img {
  width: 100%;
}

.tooltip-container {
  position: absolute;
}

.tooltips-wrapper .tooltip-container.active .tooltip-point {
  visibility: hidden;
}

.tooltips-wrapper .tooltip-point.visible {
  visibility: visible;
}

.tooltips-wrapper .tooltip-point {
  display: flex;
  position: relative;
  /* background: #0003; */
  border-radius: 50%;
  text-decoration: unset;
  flex-direction: column;
  cursor: pointer;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  opacity: .7;
  transition: width .2s ease-in-out;
  visibility: hidden;
}

.tooltips-wrapper .tooltip-point:hover,
.tooltips-wrapper .tooltip-point.hovered {
  opacity: 1;
}

.tooltips-wrapper .tooltip-point:before {
  width: var(--gapX4);
  aspect-ratio: 1;
  background: var(--white);
  border-radius: 50%;
  content: "";
  transition: width .2s ease-in-out;
}

.tooltips-wrapper .tooltip-point:hover:before,
.tooltips-wrapper .tooltip-point.hovered::before {
  width: var(--gapX3);
}

@media (min-width: 768px) {
  .tooltips-wrapper .tooltip-point {
    width: var(--gapX10);
    aspect-ratio: 1;
  }
  .tooltips-wrapper .tooltip-point:before {
    line-height: 48px;
  }
  
}
@media (max-width: 767px) {
  .tooltips-wrapper .tooltip-point {
    width: 24px !important;
    height: 24px;
    border-width: 2px;
  }
  .tooltips-wrapper .tooltip-point:before {
    line-height: 24px;
    width: var(--gapX2);
  }
  .tooltips-wrapper .tooltip-point:hover:before,
  .tooltips-wrapper .tooltip-point.hovered::before {
    width: var(--gapX1);
  }
}

.tooltips-wrapper .tooltip {
  height: auto;
  min-height: unset;
  color: var(--mainColor);
  display: flex;
  flex-flow: column;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
  z-index: 2;
  box-shadow: 0 0 20px rgba(0, 0, 0, .2);
  transform: translateX(-50%);
}

.tooltips-wrapper .tooltip.active {
  pointer-events: auto;
  opacity: 1;
}

.tooltips-wrapper .tooltip-point .hide{
  opacity: 0;
}

.tooltips-wrapper > svg {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.tooltips-wrapper > svg path {
  fill: var(--accentColor);
  opacity: 0.5;
}

.tooltips-wrapper > svg path.hovered ,
.tooltips-wrapper > svg g:has(.hovered) path,
.tooltips-wrapper > svg g.hovered path {
  fill: var(--accentHoverColor);
  opacity: 0.7;
}

.tooltips-wrapper > svg path.no-opacity ,
.tooltips-wrapper > svg g:has(.no-opacity) path,
.tooltips-wrapper > svg g.no-opacity path {
  opacity: 0;
}

.tooltip-filters {
  display: flex;
  gap: var(--gapX2) var(--gapX2);
  flex-flow: row wrap;
}

.tooltip-filters {
  margin-bottom: var(--gapX4);
}

.tooltip-filters .tooltip-filter.active {
  background: var(--accentColor);
  color: #fff !important;
   --tooltips-path-opacity: 1
}

.tooltip-filters .tooltip-filter {
  background: #0001;
  border-radius: 4px;
  padding: var(--gap) var(--gapX2);
  margin: 0;
  cursor: pointer;
  font-size: var(--textMsize);
  line-height: var(--textMheightT);
}

.tooltip-filters .tooltip-filter:not(.active):hover {
    --tooltips-path-opacity: 0.4;
}

.tooltips-wrapper .tooltip-container.position-unset {
  position: unset;
}

@media (min-width: 768px) {
  .tooltips-wrapper .tooltip {
    position: absolute;
    width: 200px !important;    
    border-radius: 8px;
    padding: var(--gapX4);
  }
  .tooltips-wrapper .tooltip .tooltip-header {
    display: none;
  }

  .tooltips-wrapper .tooltip:not(.svg-tooltip) {
    bottom: calc(100% + var(--gapX1));
    left: 50%;
    transform: translateX(-50%);
  }

  .tooltips-wrapper .tooltip::before {
    content: "";
    position: absolute;
    bottom: -24px;
    right: calc(50% - 12px);
    border: 12px solid transparent;
    border-top: 12px solid rgb(255, 255, 255);
  }
}

@media (max-width: 767px) {
  .tooltips-wrapper:has(.tooltip.active):before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #0004;
    z-index: 1000;
    transition: opacity 0.15s ease-in-out;    
  }
  
  .tooltips-wrapper .tooltip {
    position: fixed;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100%;
    transform: unset !important;
    padding: 0 var(--outsideGap) var(--gapX6);
    border-radius: 16px 16px 0 0;
    top: unset !important;
    z-index: 1001;
  }

  .tooltips-wrapper .tooltip .tooltip-header {
    display: flex;
    flex-flow: row-reverse;
    margin: 0 var(--outsideGapFix);
  }
  
  .tooltips-wrapper .tooltip .tooltip-header .tooltip-close {
    font-size: var(--titleSsize);
    margin-bottom: calc(var(--gapX6) * -1);
    line-height: var(--gapX12);
    width: var(--gapX12);
    background: unset;
    z-index: 3;
    color: var(--mainColor);
  }
}