:host {
  display: inline-block;
  position: relative;
}

.popover__container {
  position: relative;
  display: inline-block;
  font-family: var(--ifx-font-family);
}

.popover {
  position: absolute;
  z-index: 1000;
  display: none;
  background: #ffffff;
  box-shadow: 0 0 16px 0 rgba(29, 29, 29, 0.1);
  width: var(--ifx-popover-width, 240px);
  min-width: var(--ifx-popover-width, 240px);
  max-width: 320px;
  pointer-events: auto;
  box-sizing: border-box;
}
.popover.visible {
  display: flex;
  flex-direction: column;
}
.popover--disabled {
  opacity: 0.5;
  pointer-events: none;
}

.popover-close {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: background-color 0.2s ease;
}
.popover-close:hover {
  background-color: #f7f7f7;
}
.popover-close:focus {
  outline: 2px solid #0a8276;
  outline-offset: 1px;
}

.popover-content {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 4px;
  text-align: left;
}

.popover-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1d1d1d;
  margin: 0;
  padding-right: 24px;
  text-align: left;
}

.popover-text {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
  color: #575352;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  text-align: left;
}

.popover-arrow-svg {
  position: absolute;
  width: 12px;
  height: 8px;
  color: #ffffff;
  pointer-events: none;
  z-index: 1001;
}
.popover-arrow-svg path {
  fill: currentColor;
}