:root {
  --ifx-font-family: "Source Sans 3", 'Arial, sans-serif';
}

:host {
  display: inline-flex;
}

.tooltip__container {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  font-family: var(--ifx-font-family);
}

.tooltip-extended, .tooltip-compact, .tooltip-dismissible {
  background-color: #1D1D1D;
  border: 1px solid black;
  z-index: 1080;
  display: none;
  transition: opacity 0.3s;
  position: absolute;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  color: #FFFFFF;
  width: max-content;
  box-sizing: border-box;
  white-space: pre-wrap; /* wraps text at spaces and within words */
  word-wrap: break-word; /* breaks text within a word if necessary */
  overflow-wrap: anywhere; /* breaks text at arbitrary points when needed */
}
.visible.tooltip-extended, .visible.tooltip-compact, .visible.tooltip-dismissible {
  display: flex !important;
  align-items: start;
}

.tooltip-dismissible .close-button {
  all: unset;
  cursor: pointer;
  position: relative;
  order: 2;
  margin-top: 12px;
  margin-right: 12px;
  line-height: 0px;
}
.tooltip-dismissible .tooltip-dismissible-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  flex-grow: 1;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.tooltip-dismissible .tooltip-dismissible-header,
.tooltip-dismissible .tooltip-dismissible-body {
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
}
.tooltip-dismissible .tooltip-dismissible-header {
  font-weight: 600;
}
.tooltip-dismissible .tooltip-dismissible-body {
  font-weight: 400;
}

.tooltip-compact {
  padding: 4px 8px;
  text-align: center;
  flex-grow: 1;
}

.tooltip-extended {
  align-items: center;
  padding: 12px;
  gap: 10px;
}
.tooltip-extended .extended_icon {
  display: flex;
  align-self: flex-start;
  align-items: center;
  cursor: pointer;
}
.tooltip-extended .tooltip-extended-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.tooltip-extended .tooltip-extended-header,
.tooltip-extended .tooltip-extended-body {
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
}
.tooltip-extended .tooltip-extended-header {
  font-weight: 600;
}
.tooltip-extended .tooltip-extended-body {
  font-weight: 400;
}

.tooltip__container .tooltip-arrow-svg {
  position: absolute;
  width: 8px;
  height: 8px;
}

[data-placement=top].tooltip-extended > .tooltip-arrow-svg, [data-placement=top].tooltip-dismissible > .tooltip-arrow-svg, [data-placement=top].tooltip-compact > .tooltip-arrow-svg {
  bottom: -7px;
  left: 50%;
  transform: rotate(180deg) translateX(-50%);
}
[data-placement=top-start].tooltip-extended > .tooltip-arrow-svg, [data-placement=top-start].tooltip-dismissible > .tooltip-arrow-svg, [data-placement=top-start].tooltip-compact > .tooltip-arrow-svg {
  bottom: -7px;
  left: 10px;
  transform: rotate(180deg);
}
[data-placement=top-end].tooltip-extended > .tooltip-arrow-svg, [data-placement=top-end].tooltip-dismissible > .tooltip-arrow-svg, [data-placement=top-end].tooltip-compact > .tooltip-arrow-svg {
  bottom: -7px;
  right: 10px;
  transform: rotate(180deg);
}
[data-placement=bottom].tooltip-extended > .tooltip-arrow-svg, [data-placement=bottom].tooltip-dismissible > .tooltip-arrow-svg, [data-placement=bottom].tooltip-compact > .tooltip-arrow-svg {
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
}
[data-placement=bottom-start].tooltip-extended > .tooltip-arrow-svg, [data-placement=bottom-start].tooltip-dismissible > .tooltip-arrow-svg, [data-placement=bottom-start].tooltip-compact > .tooltip-arrow-svg {
  top: -7px;
  left: 10px;
}
[data-placement=bottom-end].tooltip-extended > .tooltip-arrow-svg, [data-placement=bottom-end].tooltip-dismissible > .tooltip-arrow-svg, [data-placement=bottom-end].tooltip-compact > .tooltip-arrow-svg {
  top: -7px;
  right: 10px;
}
[data-placement=left].tooltip-extended > .tooltip-arrow-svg, [data-placement=left].tooltip-dismissible > .tooltip-arrow-svg, [data-placement=left].tooltip-compact > .tooltip-arrow-svg {
  right: -3px;
  top: 50%;
  transform: rotate(90deg) translateY(-50%) translateX(-50%);
}
[data-placement=right].tooltip-extended > .tooltip-arrow-svg, [data-placement=right].tooltip-dismissible > .tooltip-arrow-svg, [data-placement=right].tooltip-compact > .tooltip-arrow-svg {
  left: -3px;
  top: 50%;
  transform: rotate(270deg) translateY(-50%) translateX(50%);
}

.tooltip-compact {
  min-width: 28px !important;
  max-width: 145px !important;
}

.tooltip-dismissible {
  min-width: 145px !important;
  max-width: 310px !important;
}

.tooltip-extended {
  min-width: 145px !important;
  max-width: 310px !important;
}