.sp-pagebuilder-fontawesome-icon-chooser {
  height: 46px;
  line-height: 46px;
  background-color: #edf1f5;
  border-radius: 3px;
  position: relative;
  z-index: 999;

  &.open {
    border-radius: 3px 3px 0 0;
    border-bottom-color: transparent;
    box-shadow: 0 3px 5px rgba(0,0,0,.5);
    -webkit-box-shadow: 0 3px 5px rgba(0,0,0,.5);
  }

  .sp-pagebuilder-fontawesome-icon-input {
    display: block;
    height: 30px;
    line-height: 30px;
    cursor: pointer;
  }

  > .sp-pagebuilder-fontawesome-icon-input {
    span {
      display: block;
      line-height: 46px;
      padding: 0 10px;
    }

    .fa-chevron-up,
    .fa-chevron-down {
      position: absolute;
      top: 16px;
      right: 10px;
    }

    .fa-times {
      position: absolute;
      top: 16px;
      right: 30px;
      color: #e61010;
      display: none;
      z-index: 9999;
    }

    .fa-chevron-up {
      display: none;
    }

  }

  &.sp-pagebuilder-has-fa-icon {
    > .sp-pagebuilder-fontawesome-icon-input {
      .fa-times {
        display: inline;
      }
    }
  }

  .sp-pagebuilder-fontawesome-dropdown {
    display: none;
    position: absolute;
    top: 46px;
    left: 0px;
    right: 0px;
    padding: 10px;
    background: #fff;
    border-top: 0;
    box-shadow: 0 3px 5px rgba(0,0,0,.5);
    -webkit-box-shadow: 0 3px 5px rgba(0,0,0,.5);
    border-radius: 0 0 3px 3px;

    input[type="text"] {
      margin-bottom: 10px;
    }

    ul.sp-pagebuilder-fontawesome-icons {
      list-style: none;
      padding: 0;
      margin: 0;
      max-height: 328px;
      overflow-y: auto;

      > li {
        float: left;
        display: block;
        width: 12.5%;
        text-align: center;

        > div {
          display: block;
          margin: 1px;
          padding: 5px;
          height: 80px;
          border-radius: 3px;
          background: #eee;
          cursor: pointer;
          -webkit-transition: all 100ms;
          transition: all 100ms;

          .fa {
            display: block;
            font-size: 24px;
            line-height: 24px;
            margin-bottom: 5px;
          }

          span {
            font-size: 12px;
            line-height: 1.2;
            display: block;
          }

          > div {
            display: table;
            width: 100%;
            height: 100%;

            > div {
              display: table-cell;
              vertical-align: middle;
            }
          }
        }

        &.active,
        &:hover { 
          >div {
            background-color: @major_color;
            color: #fff;
          }
        }
      }
    }
  }

  &.open {
    > .sp-pagebuilder-fontawesome-dropdown {
      display: block;
    }

    > .sp-pagebuilder-fontawesome-icon-input {
      .fa-chevron-up {
        display: inline;
      }

      .fa-chevron-down {
        display: none;
      }
    }
  }
}