/**
* ==========================================================================
* _element.tooltip.scss
* This is styles for form tool tip element
* ==========================================================================
*/

/**
* --------------------------------------------------------------------------
* Updated Tooltip hover and toggle with carrot
* --------------------------------------------------------------------------
*/

.ti-tooltip-content {
  position: absolute;
  display: none;
  white-space: pre-wrap;
  max-width: 350px;
  min-width: 250px;
  padding: 1rem;
  font-size: 1em;
  font-weight: 400;
  line-height: 18px;
  color: #333333;
  background-color: #ffffff;
  border-radius: 0;
  -webkit-box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.09), 0 3px 4px 0 rgba(0, 0, 0, 0.11), 0 3px 3px -2px rgba(0, 0, 0, 0.09);
  box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.09), 0 3px 4px 0 rgba(0, 0, 0, 0.11), 0 3px 3px -2px rgba(0, 0, 0, 0.09);
  -webkit-transform: translate(-12px, -10px);
  transform: translate(-12px, -10px);
  /* carrot */
  /* carrot shadow */
}

.ti-tooltip-content:after {
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
  border-top: 0;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
  top: 16px;
  left: -11px;
  content: '\00a0';
  display: inline-block;
  height: 0;
  width: 0;
  position: absolute;
}

.ti-tooltip-content:before {
  position: absolute;
  display: inline-block;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #dddddd;
  border-top: 0;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
  top: 16px;
  left: -13px;
  content: '\00a0';
  height: 0;
  width: 0;
}

.ti-tooltip-trigger {
  position: relative;
  z-index: 2;
}

.ti-tooltip-trigger.mod-hover, .ti-tooltip-trigger.mod-click {
  cursor: pointer;
}

.ti-tooltip-trigger.mod-hover:hover+.ti-tooltip-content, .ti-tooltip-trigger.mod-focus:focus+.ti-tooltip-content, .ti-tooltip-checkbox:checked+.ti-tooltip-content {
  display: inline-block;
  z-index: 3;
  opacity: 1;
  -webkit-transform: translate(12px, -10px);
  transform: translate(12px, -10px);
  -webkit-animation: tooltip-show cubic-bezier(0, 0, 0.2, 1) 250ms;
  animation: tooltip-show cubic-bezier(0, 0, 0.2, 1) 250ms;
}

@-webkit-keyframes tooltip-show {
  0% {
    pointer-events: none;
    -webkit-transform: translate(-12px, -10px);
    transform: translate(-12px, -10px);
    opacity: 0;
  }
  99% {
    pointer-events: initial;
  }
  100% {
    -webkit-transform: translate(12px, -10px);
    transform: translate(12px, -10px);
    opacity: 1;
  }
}

@keyframes tooltip-show {
  0% {
    pointer-events: none;
    -webkit-transform: translate(-12px, -10px);
    transform: translate(-12px, -10px);
    opacity: 0;
  }
  99% {
    pointer-events: initial;
  }
  100% {
    -webkit-transform: translate(12px, -10px);
    transform: translate(12px, -10px);
    opacity: 1;
  }
}

/** ti_box */

.ti_box.mod-style7 {
  border-top: 2px solid #555;
  background-color: #fff;
}

.u-margin-vertical-m {
  margin-top: 1rem;
  margin-bottom: 1rem
}