.chat-panel.chat-sidebar {
  overflow: hidden;
  border-top-left-radius: $chat-default-border-radius;
  border-top-right-radius: $chat-default-border-radius;
  right: 0 !important;
  left: 0 !important;
  bottom: -1px;
  height: 100%;
  width: 100% !important;
  margin: auto;
  max-width: 100% !important;
  box-shadow: 0px 0 4px rgba(255, 255, 255, 0.5);
  border: 1px solid $chat-border-light;

  &.closed {
    top: auto;
    right: 15px;
    height: 45px;
    min-height: initial;

    &:hover {
      opacity: 1;
    }

    .chat-sidebar-body {
      display: none;
    }

    .chat-panel-body, .chat-panel-footer, .chat-navbar ul > li > a:not(.chat-toggle) {
      display: none;
    }
  }

  .chat-tab-content {
    height: 100%;
  }

  .chat-sidebar-wrapper {

    .chat-sidebar-header {
      height: 45px;
      &:hover {
        cursor: pointer;
      }

      &.chat-navbar {
        .chat-navbar-brand {
          &:hover {
            background-color: inherit !important;
            cursor: pointer;
          }
        }
      }
    }

    .chat-sidebar-body {
      padding-bottom: 0;
    }

    .chat-navbar {

      ul > li > a, .chat-navbar > li > a {
        line-height: 18px;
      }

      .chat-navbar-brand {
        line-height: 18px;
        cursor: default;

        &:hover, &:focus {
          background: $chat-primary;
        }
      }
    }

    // POPUP ========================
    .chat-popup {
      position: absolute;
      top: -45px;
      width: 100%;
      height: 100%;
      box-shadow: none;
      border: 0;

      .popup-action-list {
        border-bottom: 1px solid #e5e5e5;
        background: #f5f5f5;
        clear: both;
        height: 36px;
        line-height: 16px;

        .popup-participants-counter {
          font-size: 16px;
        }

      }

      .popup-messages {

        .direct-chat-text {
          font-size: 13px;
        }

        .popup-messages-container {
          height: calc(100% - 37px) !important;
        }
      }
    }
    // END POPUP ========================

    .chat-panel-header {
      float: left;
      width: 100%;
      margin: 0;
      border-bottom: 1px solid $chat-border-light;
      height: 45px;
      line-height: 16px;
    }

    .chat-form-login {
      height: 100%;
      width: 100%;
      display: table;

      .chat-panel-body {
        display: table-row;
        //height: 280px;

        .chat-loader-container.first .chat-loader-path {
          fill: $chat-primary;
        }

        .chat-tab-body {
          border-bottom: 1px solid $chat-border-light;
        }
      }

      .chat-panel-footer {
        width: 100%;
        height: 25%;
        display: table-cell;
        text-align: center;
        border-top: 1px solid $chat-border-light;
        background-color: $chat-primary;

        .chat-button-group {
          padding: 10px 15px;
        }
      }

      // Forms
      .chat-form {
        overflow: hidden;
        overflow-y: auto;
        height: 100%;
        padding: 15px;

        .chat-form-error {
          font-size: 12px;
          color: lighten($chat-danger, 10%);
          display: block;
          margin: 2px 0;

          @media (min-width: 768px) {
            font-size: 12px;
          }
        }

        .chat-form-group {
          margin-bottom: 10px;

          label {
            font-size: 14px;
            margin-bottom: 5px;
            font-weight: bold;
            display: inline-block;

            @media (min-width: 768px) {
              font-size: 12px;
            }
          }
        }
      }
    }
  }
}
