.chat-dropdown {
  float: left;
  display: block;
  min-width: 185px;

  .button-group {
    width: 100%;
    position: relative;
    z-index: 3;
    display: table;
    vertical-align: middle;

    > button {
      position: relative;
      float: left;
      padding: 12px;
      background: $chat-primary-dark;
      border: 0;
      border-left: 1px solid $chat-border-light;
      cursor: pointer;
      color: $chat-text-inverse;
      display: table-cell;

      &.dasabled {
        cursor: not-allowed;
      }

      &:active, &:focus {
        outline: none;
      }
    }

    > button:first-child {
      margin-left: 0;
      width: 80%;
    }

    > button + button {
      margin-left: 0;
      width: 20%;
    }

    button + button {
      margin-left: -1px;
    }
  }

  .dropdown-container {
    position: relative;
    cursor: pointer;
    float: left;
    width: 100%;

    .dropdown-icon {
      margin-right: 2px;
    }

    .dropdown-display, .button {
      padding: 15px 12px;
      color: #fff;
      white-space: nowrap;
      text-align: left;
      float: left;
      border: 0;
      background: $chat-primary-dark;
      cursor: pointer;
      overflow-x: hidden;

      .dropdown-placeholder {
        font-size: 14px;
        width: 100%;
        position: relative;
      }
    }

    .dropdown-list {
      position: absolute;
      opacity: 0;
      z-index: 2;
      width: 100%;
      height: 0;
      max-height: 260px;
      overflow-x: hidden;
      overflow-y: auto;
      background: $chat-primary-dark;
      box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.5);
      transition: opacity 0.15s linear;

      .dropdown-item {
        float: left;
        width: 100%;
        padding: 12px;
        font-size: 14px;
        cursor: pointer;

        &:hover, &.dropdown-item-selected {
          background: $chat-primary;
        }

        &.dropdown-item-selected {
          .dropdown-item-check {
            display: block;
            float: right;
            color: $chat-secondary;
          }
        }
      }
    }

    &.show {
      .dropdown-list {
        opacity: 1;
        height: auto;
        margin-top: -1px;
      }
    }
  }
}

// Dropdown
.dropdown-container {
  position: relative;

  //.dropdown-button
  //padding: 10px 15px
  //float: left
  .dropdown-list {
    position: absolute;
    left: 0;
    top: 30px;
    z-index: 1;
    background-color: $chat-primary-dark;
    min-width: 140px;
    box-shadow: 2px 2px 4px #111;
  }
}

.dropdown-list {
  clear: both;
  background-color: $chat-primary-dark;

  .dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    cursor: pointer;
    text-align: left;
    color: $chat-text-inverse;
    border-bottom: 1px solid lighten($chat-primary-dark, 20%);

    &.active, &:hover, &:active, &:focus {
      color: darken($chat-text-inverse, 10%);
      background-color: $chat-primary;
      text-decoration: none;
    }

    &.active {
      color: $chat-secondary;
    }
  }
}
