.post-dictionary-link {
  position: relative;
  cursor: pointer;
  font-weight: bold;
  border-bottom: 2px dashed #444;
  padding-bottom: 2px;
}

.post-dictionary-link::before {
  display: inline-block;
  width: 16px;
  height: 16px;
  content: "";
  margin-left: 0.125rem;
  background: url("/wp-content/plugins/post-dictionary-link/img/dictionary-icon.svg")
    no-repeat scroll center center/ auto 100%;
}

.post-dictionary-link .post-dictionary-link-tooltip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 320px;
  max-width: calc(100vw - 20px);
  font-weight: initial;
  opacity: 0;
  visibility: hidden;
  z-index: -1;
  transition: all 0.2s ease-in-out;
}

.post-dictionary-link:hover .post-dictionary-link-tooltip {
  opacity: 1;
  visibility: visible;
  z-index: 100;
}

.post-dictionary-link .inner {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  background: #f8f9fb;
  border: 1px solid #ccc;
  padding: 16px;
  box-shadow: 0px 2px 8px -4px rgba(0, 0, 0, 0.1),
    0px 0px 8px -2px rgba(0, 0, 0, 0.06);
  width: 100%;
  align-items: flex-start;
}

.post-dictionary-link .inner::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #f8f9fb;
  top: -8px;
  transform: rotate(45deg);
  border-width: 1px;
  border-style: solid;
  border-color: #ccc transparent transparent #ccc;
  right: 0;
  left: 0;
  margin: 0 auto;
}

.post-dictionary-link .post-dictionary-link-tooltip-title {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.post-dictionary-link .post-dictionary-link-tooltip-title::before {
  width: 16px;
  height: 16px;
  content: "";
  margin-left: 0.5rem;
  background: url("/wp-content/plugins/post-dictionary-link/img/dictionary-icon.svg")
    no-repeat scroll center center/ auto 100%;
}

.post-dictionary-link .post-dictionary-link-tooltip-content {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
}

.post-dictionary-link .post-dictionary-link-tooltip-link {
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  background-color: #e5f3f8 !important;
  color: #004b69 !important;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.post-dictionary-link .post-dictionary-link-tooltip-link:hover {
  color: #e5f3f8 !important;
  background-color: #004b69 !important;
}

.post-dictionary-link .post-dictionary-link-tooltip-title-skeleton {
  width: 60%;
  height: 14px;
  background-color: #ccc;
  border-radius: 8px;
  margin-bottom: 12px;
}

.post-dictionary-link .post-dictionary-link-tooltip-content-skeleton {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.post-dictionary-link .post-dictionary-link-tooltip-content-skeleton span {
  width: 100%;
  height: 10px;
  background-color: #ccc;
  border-radius: 8px;
  margin-bottom: 8px;
}

.post-dictionary-link
  .post-dictionary-link-tooltip-content-skeleton
  span:last-child {
  width: 75%;
}

.post-dictionary-link .post-dictionary-link-tooltip-link-skeleton {
  width: 40%;
  height: 32px;
  background-color: #ccc;
  border-radius: 8px;
}
