/* Default tooltip icon */

.default-tooltip-icon {
  background: url("/static/images/svg/icon-info.svg") no-repeat;
  display: inline-block;
  height: 20px;
  vertical-align: bottom;
  width: 20px;
}

form.responsive .default-tooltip-icon {
  top: -6px;
}

@media (min-width: 992px) {
  form.responsive .default-tooltip-icon {
    top: 0;
  }
}


/* Tooltip Containers */

.tooltip-wrapper {
  left: 50%;
  opacity: 0;
  padding: 10px 0 0;
  position: absolute;
  top: 75%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: -1;
}

.custom-tooltip-wrapper {
top: 55%;
}

.tooltip {
  background: #fff;
	/* -webkit-box-shadow: 3px 3px 10px 0px rgba(195, 195, 195, 0.75);
  -moz-box-shadow: 3px 3px 10px 0px rgba(195, 195, 195, 0.75);
  box-shadow: 3px 3px 10px 0px rgba(195, 195, 195, 0.75);
  border: 3px solid black;*/
  box-shadow: 5px 5px 5px #CCCCCC;
  border: 1px solid #ccc;
	box-sizing: border-box;
	color: black;
  font-weight: 400;
  padding: 13px;
  position: relative;
  max-width: 300px;
  border-radius: 0.25rem;
  opacity: 0.95;
}

@media (min-width: 768px) {
  .tooltip {
    width: 300px;
  }
}


/* Tooltip content */

.tooltip h3 {
  margin: 0 0 5px;
}

.tooltip p {
  margin: 0 0 10px;
}

.tooltip p:last-child {
  margin: 0;
}


/* Tooltip point */

.tooltip-wrapper:not(.no-point) .tooltip:before {
  border-bottom: 0.625rem solid #ccc;
  border-left: 0.625rem solid transparent;
  border-right: 0.625rem solid transparent;
  bottom: 100%;
  content: "";
  display: block;
  left: 50%;
  position: absolute;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.tooltip-wrapper:not(.no-point) .tooltip:after {
  border-bottom: 0.625rem solid #fff;
  border-left: 0.625rem solid transparent;
  border-right: 0.625rem solid transparent;
  bottom: 100%;
  content: "";
  display: block;
  left: 50%;
  position: absolute;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}


/* Tooltip-enabled icons / text */

.tooltip-enabled {
  color: #0047bb;
  cursor: pointer;
  position: relative;
}

.tooltip-enabled:hover .tooltip-wrapper,
.tooltip-enabled:focus .tooltip-wrapper,
.tooltip-enabled:active .tooltip-wrapper {
  opacity: 1;
  z-index: 1001;
}

#recent-autopay-signup {
	margin-right: -3px;
}


/* One-off tooltip icon styles */

.user_name_tip {
  background: url("/static/images/svg/icon-info.svg") -1px -1px no-repeat;
  display: inline-block;
  height: 21px;
  /* margin: 0 0 7px 2px; */
  vertical-align: bottom;
  width: 20px;
}

@media (min-width: 992px) {
  .user_name_tip {
    margin: 0 0 0 2px;
  }
}

.account-number-tip {
  background: url("/static/images/icon-info.svg") no-repeat;
  display: inline-block;
  height: 22px;
  margin-bottom: 7px;
  vertical-align: bottom;
  width: 22px;
}

@media (min-width: 992px) {
  .account-number-tip {
    margin-bottom: 0;
  }
}


/* ------------------- */
/* Positioning classes */
/* ------------------- */

/* Left */

@media (min-width: 768px) {
  .tooltip-enabled.left .tooltip-wrapper {
    left: auto;
    padding: 0 25px 0 0;
    right: 75%;
    top: -65%;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }

  .tooltip-enabled.left .tooltip:before {
    border-left: 20px solid black;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    bottom: auto;
    content: "";
    display: block;
    left: 100%;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }

  .tooltip-enabled.left .tooltip:after {
    border-left: 16px solid #fff;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    bottom: auto;
    content: "";
    display: block;
    left: 100%;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }
}


/* Right */

@media (min-width: 768px) {
  .tooltip-enabled.right .tooltip-wrapper {
    left: 75%;
    padding: 0 0 0 25px;
    top: -65%;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
  }

  .tooltip-enabled.right .tooltip:before {
    border-right: 20px solid white;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    bottom: auto;
    content: "";
    display: block;
    left: auto;
    position: absolute;
    right: 100%;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }

  .tooltip-enabled.right .tooltip:after {
    border-right: 16px solid #fff;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    bottom: auto;
    content: "";
    display: block;
    left: auto;
    position: absolute;
    right: 100%;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }
}


/* Top */

.tooltip-enabled.top .tooltip-wrapper {
  bottom: 75%;
  padding: 0 0 25px;
  top: auto;
}

.tooltip-enabled.top .tooltip:before {
  border-top: 20px solid black;
  border-bottom: none;
  bottom: auto;
  top: 100%;
}

.tooltip-enabled.top .tooltip:after {
  border-top: 16px solid #fff;
  border-bottom: none;
  bottom: auto;
  top: 100%;
}


/* Older styles (Before April 2015) */

.tip {
	background: transparent url(/static/images/tooltipTop.png) no-repeat top;
	display: none;
	font-size:11px;
	overflow: hidden;
	padding-top: 28px;
	position: absolute;
	width: 226px;
	z-index: 1000;
}

.tipMid {
  background: transparent url(/static/images/tooltipMid.png) repeat-y;
  padding: 10px 25px 20px 25px;
}

.tipBtm {
  background: transparent url(/static/images/tooltipBtm.png) no-repeat bottom;
  height: 8px;
}
