/**
 * Tooltips

 * @author Alex Kovalev <alex.kovalevv@gmail.com>
 * @copyright Webcraftic 26.08.2019
 */

.wam-tooltip {
  position: relative;
}

.wam-tooltip::before {
  content: "";
  position: absolute;
  z-index: 60;
  left: 5px;
  display: none;
  width: 20px;
  height: 20px;
}

.wam-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 60;
  left: 5px;
  display: none;
  min-width: 200px;
  padding: 8px 15px;
  color: #6d5506;
  background: #FFCB1E;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.2;
}

.wam-tooltip-top::before {
  bottom: 100%;
  background: linear-gradient(135deg, #FFCB1E, #FFCB1E 50%, transparent 50%, transparent) no-repeat;
}

.wam-tooltip-top::after {
  bottom: 100%;
  margin: 0 0 10px;
  border-radius: 6px 6px 6px 0;
}

.wam-tooltip--bottom::before {
  top: 100%;
  background: linear-gradient(45deg, #FFCB1E, #FFCB1E 50%, transparent 50%, transparent) no-repeat;
}

.wam-tooltip--bottom::after {
  top: 100%;
  margin: 15px 0 0;
  border-radius: 0 6px 6px 6px;
}

.wam-tooltip:hover::before,
.wam-tooltip:hover::after {
  display: block;
}