@value box_shadow3 from "../../interal-variables/boxshadows.module.css";

.tooltipContainer {
  pointer-events: none;
  box-shadow: box_shadow3;
  border-radius: var(--lib_border_radius_xsmall);
  max-width: 420px;
  animation: tooltip-grow 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  display: none;
}

.show {
  display: block;
}

.tooltipMessage {
  color: var(--lib_tooltip_text);
  font-size: var(--lib_text_size_small);
  /* font-family: var(--zd_semibold); */
  word-break: break-word;

  /* line-height: var(--zd_size20); */
  /* min-height: var(--zd_size24); */
  white-space: normal;
  overflow: hidden;
  background-color: var(--lib_tooltip_bg);
  padding: var(--lib_padding_xsmall) var(--lib_padding_small);
  border-style: solid;
  border-color: transparent;
  border-radius: 2px
  /* display: none; */
}
.tooltipMessage.dark {
  background-color: var(--lib_tooltip_bg);
  color: var(--lib_tooltip_text);
}

.arrow {
  position: absolute;
  background: var(--lib_tooltip_bg);
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
}
.arrow.dark {
  background: var(--lib_tooltip_bg);
}
@keyframes tooltip-grow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* .arrow {
  content: "";
  position: absolute;
  top: 0;
  border-top-left-radius: 3px;
}
.arrowUp,
.arrowDown {
  width: 11px;
  height: 11px;
  border-top: solid 6px var(--zdt_tooltip_default_bg);
  border-left: solid 6px var(--zdt_tooltip_default_bg);
  border-right: solid 6px transparent;
  border-bottom: solid 6px transparent;
}
.arrowDown {
  margin-top: -4px !important; /* put important because of '.wms-mainui *' have margin: 0; 
}
.arrowLeft,
.arrowRight {
  width: 11px;
  height: 11px;
  border-top: solid 6px var(--zdt_tooltip_default_bg);
  border-left: solid 6px var(--zdt_tooltip_default_bg);
  border-right: solid 6px transparent;
  border-bottom: solid 6px transparent;
}
.arrowRight {
  margin-left: -2px;
}
.arrowLeft {
  margin-left: 1px;
}
.arrowUp {
  transform: rotate(45deg);
}
.arrowDown {
  transform: rotate(225deg);
}
.arrowLeft {
  transform: rotate(315deg) translateY(-50%);
}
.arrowRight {
  transform: rotate(135deg) translateY(50%);
} */

/* .tooltipContainer {
  position: relative;
  width: fit-content;
  max-width: 100px;
  margin: 0 10px;
  display: none;
}
.show {
  display: inline-block;
}
.tooltipMessage {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}
.hover.tooltip,
.tooltipContainer:hover .tooltip {
  display: block;
}
.tooltip {
  width: max-content;
  padding: 10px;
  position: absolute;
  font-size: 14px;
  box-shadow: 0 3px 10px 0 rgb(0 0 0 / 5%);
  display: none;
}
.rounded {
  border-radius: 4px;
}
.light {
  background-color: #f1f1f1;
  border: 1px solid #d0d0d4;
  color: #000;
}
.dark {
  background-color: #333;
  border: 1px solid #333;
  color: #fff;
}
.light.tooltip:before {
  background-color: #f1f1f1;
  border: 1px solid #d0d0d4;
  border-right: 0;
  border-bottom: 0;
}
.dark.tooltip:before {
  background-color: #333;
  border: 1px solid #333;
  border-right: 0;
  border-bottom: 0;
}
.tooltip:before {
  position: absolute;
  z-index: 0;
  content: "";
}
.smallArrow.tooltip:before {
  height: 10px;
  width: 10px;
}
.bl.tooltip,
.bc.tooltip,
.br.tooltip {
  margin-top: 10px;
}
.tl.tooltip,
.tc.tooltip,
.tr.tooltip {
  margin-bottom: 10px;
  bottom: 100%;
}
.lt.tooltip,
.lc.tooltip,
.lb.tooltip {
  margin-right: 10px;
  right: 100%;
  top: 0;
}
.rt.tooltip,
.rc.tooltip,
.rb.tooltip {
  margin-left: 10px;
  left: 100%;
  top: 0;
}
.bl.tooltip:before {
  top: -1px;
  left: 20%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.bc.tooltip:before {
  top: -1px;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.br.tooltip:before {
  top: -1px;
  right: 10%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.tl.tooltip:before {
  bottom: -12px;
  left: 20%;
  transform: translate(-50%, -50%) rotate(-135deg);
}
.tc.tooltip:before {
  bottom: -12px;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-135deg);
}
.tr.tooltip:before {
  bottom: -12px;
  right: 10%;
  transform: translate(-50%, -50%) rotate(-135deg);
}

.lt.tooltip:before {
  top: 30%;
  right: -12px;
  transform: translate(-50%, -50%) rotate(135deg);
}
.lc.tooltip:before {
  top: 50%;
  right: -12px;
  transform: translate(-50%, -50%) rotate(135deg);
}
.lb.tooltip:before {
  bottom: 5%;
  right: -12px;
  transform: translate(-50%, -50%) rotate(135deg);
}

.rt.tooltip:before {
  top: 30%;
  left: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.rc.tooltip:before {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.rb.tooltip:before {
  bottom: 5%;
  left: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
} */

/* .tooltip {
  width: max-content;
  padding: 10px;
  position: absolute;
  font-size: 14px;
  box-shadow: 0 3px 10px 0 rgb(0 0 0 / 5%);
  display: none;
}

.arrow {
  position: absolute;
  background: #333;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
}
.tooltipContent {
  word-break: break-word;
  max-width: 420px;
  white-space: normal;
  overflow: hidden;
  border-style: solid;
  border-color: transparent;
}

.light {
  background-color: #f1f1f1;
  border: 1px solid #d0d0d4;
  color: #000;
} */
