@import "../../styles/color.module";
@import "../../styles/font.module";

.wrap {
  margin-bottom: 15px;

  label, input {
    font-size: 14px;
    line-height: 16px;
    color: $ultraMarine;
    font-family: $fontPrimary;
  }

  .wrapLabel {
    margin-bottom: 7px;
    position: relative;

    label, svg, .toolTip {
      display: inline-block;
    }

    label {
      vertical-align: middle;
      font-weight: 500;
      cursor: pointer;
      position: relative;

      .toolTip {
        vertical-align: middle;
        padding: 7px;
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        color: $black;
        font-weight: 400;

        svg {
          color: $blue100;
        }

        .textToolTip {
          position: absolute;
          z-index: 1;
          background-color: $white;
          padding: 12px;
          box-shadow: 0 1px 10px rgba(0, 0, 45, 0.06);
          border-radius: 8px;
          left: 50%;
          bottom: 100%;
          transform: translateX(-50%);
          font-size: 14px;
          width: 181px;
          display: none;
        }

        &:hover {
          .textToolTip {
            display: block;
          }
        }
      }
    }


  }

  .inputWrap {
    max-width: 293px;
    width: 100%;
    position: relative;

    input {
      width: 100%;
      padding: 11px 15px;
      border: solid 1px $grey20;
      background-color: $white;
      font-weight: 400;
      border-radius: 6px;
      outline: none;
      box-sizing: border-box;

      &.active, &:focus {
        border-color: $info;
      }

      &:disabled {
        background-color: $grey10;
        color: $lynch;
      }

      &::placeholder {
        color: $lynch;
      }
    }

    &[data-full-width="true"] {
      max-width: 100%;
    }

    &[data-error="true"] input {
      border-color: $errorSecondary;
    }

    svg, img {
      position: absolute;
      right: 13px;
      bottom: 0;
      top: 0;
      margin: auto;
      width: 16px;
      height: 16px;
      color: $ultraMarine;
    }
  }

  .error {
    color: $errorSecondary;
    font-size: 12px;
    font-style: italic;
    font-family: $fontPrimary;
    margin-top: 8px;
    letter-spacing: .2px;
    line-height: 16px;
    font-weight: 400;
  }
}