.glossary-tooltip {
	display: inline;
	position: relative;
	z-index: 999;
}

/* Trigger text */

.glossary-tooltip a, .glossary-underline {
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  position: relative;
  padding: 0 10px;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
  border:0px !important;
}

.glossary-tooltip a::before, .glossary-tooltip a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  -webkit-transform: scale3d(0, 1, 1);
  transform: scale3d(0, 1, 1);
  -webkit-transform-origin: center left;
  transform-origin: center left;
  -webkit-transition: transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition: transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.glossary-tooltip a::before {
  background: grey;
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
}

.glossary-tooltip-link:hover a::after, .glossary-tooltip-link:hover a::before {
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
}

.glossary-tooltip .glossary-external-link::after {
  content: "";
  display:inline-block;
  margin-left: 5px;
  width: 14px;
  height: 16px;
  background-size:  14px 16px;
  mask: url("data:image/svg+xml,%3Csvg%20height%3D%221024%22%20width%3D%22768%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Cpath%20d%3D%22M640%20768H128V257.90599999999995L256%20256V128H0v768h768V576H640V768zM384%20128l128%20128L320%20448l128%20128%20192-192%20128%20128V128H384z%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");
  mask-size: cover;
  background: black;
}

/* Tooltip */

.glossary-tooltip-content {
  position: absolute;
  z-index: 9999;
  width: 100px;
  margin: 0 0 20px -180px;
  bottom: 100%;
  text-align: left;
  padding: 0 20px;
  background: #FFF;
  border: 1px solid #CCC;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  color: #333;
  opacity: 0;
  cursor: default;
  pointer-events: none;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  bottom: 100%;
  left: 0;
  max-height: 250px;
}

.glossary-tooltip:hover .glossary-tooltip-content {
  pointer-events: auto;
  opacity: 1;
  position:absolute;
  display:block !important;
  visibility:visible !important;
  top:unset;
  transition: all 0.5s;
  width: 360px;
}

/* Tooltip content*/

.glossary-tooltip-content img {
  position: relative;
  height: 150px;
  display: block;
  float: left;
  margin-right: 1em;
}

.glossary-tooltip-text {
  display: block;
  color: black;
  padding: 20px 0;
  font-size: 14px;
}

.glossary-tooltip-text a {
  font-weight: bold;
}

.glossary-underline {
  text-decoration:underline;
}
.rtl .glossary-tooltip-content {
  text-align:right;
}
