.str-chat__list {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* enable smooth scrolling on ios */
  padding: 75px 0 0 0;

  &-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  &--thread {
    padding: 15px 0 0 0;
  }
}

.str-chat__ul {
  display: block;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.str-chat__reverse-infinite-scroll {
}

.str-chat__custom-notification {
  border-radius: 4px;
  font-size: 12px;
  padding: 8px;
  font-family: $second-font;
  text-align: center;

  &.notification-success {
    background: rgba(2, 208, 2, 0.1);
    border: 1px solid rgba(2, 208, 2, 0.1);
    color: green;
  }

  &.notification-error {
    background: rgba(208, 2, 27, 0.1);
    border: 1px solid rgba(208, 2, 27, 0.1);
    color: #f00;
  }
}

.str-chat__connection-issue {
  background: rgba(208, 2, 27, 0.1);
  border: 1px solid rgba(208, 2, 27, 0.1);
  color: #f00;
  border-radius: 4px;
  font-size: 12px;
  padding: 8px;
  font-family: $second-font;
  text-align: center;
}

.str-chat__list-notifications {
  padding: 0 40px;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
}

.messaging {
  &.str-chat {
    .str-chat {
      &__list {
        padding: 55px 40px 0;
        background: white;

        &-notifications {
          background: white;
        }
      }
    }
    @media screen and (max-width: 960px) {
      .str-chat {
        &__list {
          padding: 55px 10px 0;
          &-notifications {
            padding: 0 10px;
          }
        }
      }
    }
    &.dark {
      .str-chat__list {
        background: rgba(white, 0.04);
        &-notifications {
          background: rgba(white, 0.04);
        }
      }
    }
  }
}

.livestream {
  &.str-chat {
    .str-chat {
      &__list {
        padding: 55px 10px;
      }
    }
  }
}

.commerce {
  &.str-chat {
    .str-chat {
      &__list {
        padding: 75px 20px 0;
        &-notifications {
          padding-left: 22px;
          padding-right: 22px;
        }
      }
    }
  }
}
