/**
 * @file
 */

/* stylelint-disable selector-max-id, declaration-no-important */
.b-hint {
  display: none;
}

.b-tooltip .b-hint {
  position: absolute;
  z-index: 8;
  top: 5px;
  right: 5px;
  display: none;
  width: 16px;
  height: 16px;
  margin: 0;
  content: "?";
  cursor: default;
  text-align: center;
  color: #fff;
  border-radius: 50%;
  background: #828282;
  font-family: sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.b-tooltip .form-item.is-selected > .b-hint,
.b-tooltip .form-item.is-hovered > .b-hint,
.b-tooltip .form-item:hover > .b-hint {
  display: block;
}

.form__header .form-item .b-hint {
  top: 16px;
  right: -5px;
}

.b-tooltip .form-item {
  position: relative;
}

.b-tooltip .form-item > .description {
  position: absolute !important; /* csslint allow: known-properties, important */
  z-index: 99;
  right: 0;
  bottom: 120%;
  display: block;
  visibility: hidden;
  overflow: hidden;
  width: 100%;
  min-width: 240px;
  max-width: 320px;
  min-height: 40px;
  padding: 12px !important; /* csslint allow: known-properties, important */
  transition: all 0.4s ease-in 0s;
  text-align: left;
  white-space: normal;
  opacity: 0;
  color: #dadada !important; /* csslint allow: known-properties, important */
  border-radius: 2px;
  background: #000;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 10px -2px #000;
  font-size: 14px;
  font-size: 0.875rem;
  line-height: 1.3;
}

.b-tooltip--lg .form-item > .description {
  max-width: 640px;
}

.b-tooltip .form-item--tooltip-wide > .description {
  min-width: 320px;
  max-width: 640px;
}

.b-tooltip .form-item > .description ul {
  margin: 1em 0;
  padding-left: 1em;
}

.b-tooltip .form-item > .description a {
  color: #fff;
  font-weight: 600;
}

.b-tooltip .form-item > .description::after {
  position: absolute;
  z-index: 99;
  right: 20px;
  bottom: -10px;
  display: block;
  width: 0;
  height: 0;
  content: "";
  opacity: 0.6;
  border: 10px solid transparent;
  border-top: 0;
  border-right: 10px solid #000;
}

.b-tooltip .form-item.is-selected > .description,
.b-tooltip .form-item.is-hovered > .description {
  bottom: 100%;
  display: block;
  visibility: visible;
  overflow: visible !important; /* csslint allow: known-properties, important */
  opacity: 1 !important; /* csslint allow: known-properties, important */
  box-shadow: 0 0 4px 1px #fff;
}

.b-tooltip .form-item.is-selected > .description {
  padding-left: 20px !important; /* csslint allow: known-properties, important */
}

.b-tooltip .form-item.is-selected > .description::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 5px;
  display: block;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  content: "x";
  color: #dadada;
  font-family: sans-serif;
  line-height: 18px;
}

.b-tooltip .b-tooltip__bottom > .description,
.b-tooltip .form-item--tooltip-bottom > .description {
  top: 50%;
  bottom: auto !important; /* csslint allow: known-properties, important */
}

.b-tooltip .b-tooltip__bottom > .description::after,
.b-tooltip .form-item--tooltip-bottom > .description::after {
  top: -20px;
  bottom: auto;
  border: 10px solid transparent;
  border-top: 10px solid transparent;
  border-right: 10px solid #000;
  border-bottom: 10px solid #000;
}

.no-js .b-tooltip .form-item:hover > .description {
  bottom: 100%;
  display: block;
  visibility: visible;
  overflow: visible !important; /* csslint allow: known-properties, important */
  opacity: 1 !important; /* csslint allow: known-properties, important */
}
