.ew-tooltip {
  position: fixed;
  z-index: var(--ewcp-z-tooltip, 3000);
  box-sizing: border-box;
  max-width: var(--ew-tooltip-max-width, none);
  padding: 5px 10px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  word-break: break-word;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ew-tooltip--dark {
  --ew-tooltip-bg: #303133;
  --ew-tooltip-color: #fff;
  --ew-tooltip-border-color: transparent;
  --ew-tooltip-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.ew-tooltip--light {
  --ew-tooltip-bg: var(--ewcp-color-bg, #fff);
  --ew-tooltip-color: var(--ewcp-color-text, #303133);
  --ew-tooltip-border-color: var(--ewcp-color-border-light, #e4e7ed);
  --ew-tooltip-shadow: var(--ewcp-shadow-popper, 0 2px 12px rgba(0, 0, 0, 0.1));
}

@media (prefers-reduced-motion: reduce) {
  .ew-tooltip {
    transition: none;
  }
}
.ew-tooltip--dark,
.ew-tooltip--light {
  background: var(--ew-tooltip-bg);
  color: var(--ew-tooltip-color);
  border: 1px solid var(--ew-tooltip-border-color);
  box-shadow: var(--ew-tooltip-shadow);
}

.ew-tooltip--visible {
  opacity: 1;
  visibility: visible;
}

.ew-tooltip--enterable {
  pointer-events: auto;
}

.ew-tooltip__content {
  display: block;
}

.ew-tooltip__arrow {
  position: absolute;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  background: inherit;
  border: 1px solid transparent;
  border-color: transparent;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: -1;
}

.ew-tooltip[data-placement^=top] .ew-tooltip__arrow {
  border-right-color: var(--ew-tooltip-border-color);
  border-bottom-color: var(--ew-tooltip-border-color);
}

.ew-tooltip[data-placement^=bottom] .ew-tooltip__arrow {
  border-left-color: var(--ew-tooltip-border-color);
  border-top-color: var(--ew-tooltip-border-color);
}

.ew-tooltip[data-placement^=left] .ew-tooltip__arrow {
  border-top-color: var(--ew-tooltip-border-color);
  border-right-color: var(--ew-tooltip-border-color);
}

.ew-tooltip[data-placement^=right] .ew-tooltip__arrow {
  border-left-color: var(--ew-tooltip-border-color);
  border-bottom-color: var(--ew-tooltip-border-color);
}