.es-term {
  position: relative;
  border-bottom: 1px dotted currentColor;
  cursor: help;
  outline: none;
}

.es-term:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.es-term-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: block;
  width: max-content;
  max-width: min(360px, calc(100vw - 20px));
  padding: 10px 15px 7px 15px;
  border-radius: 2px;
  background: #efe8d2;
  color: #332b16;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 0 10px #717171;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.es-term-pop a {
  color: #ab5d6a;
}

.es-term-pop::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-bottom-color: #efe8d2;
}

.es-term.is-above .es-term-pop {
  top: auto;
  bottom: calc(100% + 10px);
}

.es-term.is-above .es-term-pop::before {
  bottom: auto;
  top: 100%;
  border-bottom-color: transparent;
  border-top-color: #efe8d2;
}

.es-term.is-open .es-term-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media only screen and (max-width: 600px) {
  .es-term-pop {
    max-width: 78vw;
  }
}
