.str-chat__audio {
  &__wrapper {
    height: 80px;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
    margin: 0;
    display: flex;
    background: #f1f1f1;
  }

  &__image {
    height: 80px;
    width: 80px;
    position: relative;
    z-index: 20;

    &--overlay {
      width: inherit;
      height: inherit;
      position: absolute;
      top: 0;
      left: 0;
      background: rgba(black, 0.4);
      z-index: 30;
      font-size: 3em;
      color: rgba(white, 0.69);
      display: flex;
      align-items: center;
      justify-content: center;
      user-select: none;
    }

    &--button {
      margin: 0;
      padding: 0;
      display: flex;
      align-items: center;
      width: 40px;
      height: 40px;
      svg {
        fill: rgba(white, 0.69);
      }
    }

    img {
      z-index: 20;
      position: absolute;
      top: 0;
      left: 0;
      width: inherit;
      height: inherit;
      object-fit: cover;
    }
  }

  &__content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 8px 16px;
    margin-left: 16px;
    width: 100%;

    &--title {
      // color: $fontColor;
      margin: 0;
      padding: 0;
      line-height: 1;
    }

    &--subtitle {
      margin: 0;
      padding: 0;
      line-height: 1;
      font-size: 12px;
      opacity: 0.49;
      // color: rgba($secondary-color, 0.69);
    }

    &--progress {
      height: 6px;
      width: 100%;
      border-radius: 4px;
      background: rgba(black, 0.1);
      padding: 1px;
      margin: 2px 0;

      > div {
        height: 4px;
        border-radius: 4px;
        width: 0%;
        background: $secondary-color;
        transition: width 0.5s linear;
      }
    }
  }
}

.str-chat.dark {
  .str-chat__audio {
    &__wrapper {
      background: #1a1a1a;
      color: white;
    }
    &__content {
      &--progress {
        background: rgba(white, 0.1);
      }
    }
  }
}
