@mixin icon($position) {
  float: left;
  width: 16px;
  height: 16px;
  background-image: url(https://code.jquery.com/ui/1.10.3/themes/ui-lightness/images/ui-icons_ffffff_256x240.png);
  display: block;
  text-indent: -99999px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: $position;
}

.c-controls-bar {
  margin: 3px;
  border-radius: 4px;
  border: 1px solid #e78f08;
  background: #f6a828
    url(https://code.jquery.com/ui/1.10.3/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png)
    50% 50% repeat-x;
  font-size: 13px;

  &__list {
    margin: 0;
    padding: 0;
    line-height: 1.3;
    list-style: none;

    &:after {
      content: '';
      display: block;
      clear: both;
    }
  }

  &__item {
    float: left;
    padding-right: 10px;
  }

  &__item-right {
    float: right;
  }

  &__button {
    font-size: 0.9em;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 0px;
    border: none;
    background: none;
    float: left;
    cursor: pointer;

    &:hover {
      text-decoration: underline;
    }
  }

  &__icon-check {
    @include icon(-64px -145px);
  }

  &__icon-close {
    @include icon(-96px -129px);
  }

  &__icon-circle-close {
    @include icon(-32px -192px);
  }
}

.c-main-button {
  margin-bottom: 10px;
  width: 100%;
  height: 34px;
  font-size: 13px;
  color: #444;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
  text-align: left;
  background: url(https://code.jquery.com/ui/1.10.3/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png)
    50% 50% repeat-x;

  &:hover {
    border-color: #fbcb09;
    background: #fdf5ce
      url(https://code.jquery.com/ui/1.10.3/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png)
      50% 50% repeat-x;
  }

  &:focus {
    outline: none;
  }

  &-active {
    border-color: #fbd850;
    background: #ffffff
      url(https://code.jquery.com/ui/1.10.3/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png)
      50% 50% repeat-x;

    &:hover {
      border-color: #fbd850;
      background: #ffffff
        url(https://code.jquery.com/ui/1.10.3/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png)
        50% 50% repeat-x;
    }
  }

  &__icon-triangle {
    @include icon(0px 0px);
    float: right;
    background-image: url(assets/images/api/select_tinydropdown_normal.png);
  }
}

.c-options-list {
  box-sizing: border-box;
  position: absolute;
  margin-top: -10px;
  z-index: 5;
  width: 100%;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #eeeeee
    url(https://code.jquery.com/ui/1.10.3/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png)
    50% top repeat-x;

  &__groups-container {
    max-height: 300px;
    margin: 3px;
    overflow-y: auto;
    padding: 0;
    box-sizing: border-box;
  }
}

.c-options-group {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;

  &__group-header {
    padding: 3px 0 6px 0;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-weight: 700;
    border-bottom: 1px solid;
    font-size: 0.9em;
    line-height: 1.3;

    &:focus {
      outline: none;
    }

    &:hover {
      color: #23527c;
    }
  }

  &__group-option {
    box-sizing: border-box;
    display: block;
    border: 1px solid transparent;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #444;
    &--active {
      color: #f90;
      background: #fdf5ce
        url(https://code.jquery.com/ui/1.10.3/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png)
        50% 50% repeat-x;
    }

    input[type='checkbox']:focus {
      outline: none;
    }
  }
}
.c-multiple-select-autocomplete {
  margin: 10px 4px -8px 4px;
}
