.str-chat__message-attachment-card {
  position: relative;
  background: $white;
  border-radius: $border-radius $border-radius $border-radius 0;
  overflow: hidden;
  font-size: 13px;
  border: 1px solid $border-color;
  margin: 32px 0 0 0;
  &--header {
    width: 100%;
    height: 175px;

    img {
      width: inherit;
      height: inherit;
      object-fit: cover;
    }
  }

  &--title {
    font-weight: 700;
    flex: 1;
  }

  &--flex {
    min-width: 0px;
    &,
    & > * {
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  &--content {
    padding: 8px 16px;
    margin: -8px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    > * {
      margin: 8px 0;
    }
  }

  &--url {
    text-decoration: none;
    display: block;
    color: $black;
    text-transform: uppercase;
    opacity: 0.5;

    &::after {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
    }
  }
  &--giphy &--header {
    height: unset;
  }
}

.str-chat.commerce {
  .str-chat__message-attachment-card {
    max-width: 375px;
    width: 100%;
  }
}

.str-chat__message--me {
  .str-chat__message-attachment-card {
    background: $border-color;
    border: 1px solid transparent;
    border-radius: $border-radius $border-radius 0 $border-radius;
  }
}

.dark.str-chat {
  .str-chat__message-attachment-card__giphy-logo {
    filter: invert(100%);
  }
}
