@import '../../styles/variables';

.Error {
  position: relative;
  width: 20px;
  height: 20px;
  cursor: pointer;
  text-align: center;
  color: $white;
  border-radius: 50%;
  background: $error-color;
  line-height: 20px;
  margin: 0 5px 0 0;

  &:hover,
  &_active {
    background: $error-color;
  }

  &:before {
    content: '!';
  }

  &__bubble {
    position: absolute;
    z-index: 2500;
    bottom: 100%;
    left: 50%;
    display: block;
    width: 180px;
    margin: 0 0 7px;
    padding: 10px;
    transform: translate(-50%, 0);
    text-align: left;
    white-space: normal;
    color: $white;
    border-radius: 3px;
    background: transparentize($error-color, 0.2);
    box-shadow: 0 1px 3px 1px rgba(24, 25, 26, .25);
    font-size: 12px;
    line-height: normal;

    &:before {
      position: absolute;
      bottom: -7px;
      left: 50%;
      display: block;
      width: 0;
      height: 0;
      margin-left: -7px;
      content: '';
      border-width: 7px 7px 0 7px;
      border-style: solid;
      border-color: transparentize($error-color, 0.2) transparent transparent transparent;
    }

    &_single {
      list-style: none;
    }
  }

  &__input-error {
    margin-left: 15px;
  }
}
