@import "_variables";

.quote {
  margin-top: 10px;
  border: solid 1px var(--dark_grey);
  border-radius: 10px;
  background-color: var(--bg_elements);
  overflow: hidden;
  pointer-events: all;
  position: relative;
  width: 100%;

  &:hover {
    border-color: var(--grey);
  }

  &.unavailable:hover {
    border-color: var(--dark_grey);
  }

  .tweet-name-row {
    padding: 8px 10px 6px 10px;
  }

  .quote-text {
    overflow: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 10px;
    padding-top: 0;
  }

  .show-thread {
    padding: 0px 10px 6px 10px;
    margin-top: -6px;
  }

  .quote-latest {
    padding: 0px 10px 6px 10px;
    color: var(--grey);
  }

  .replying-to {
    padding: 0px 10px;
    padding-bottom: 4px;
    margin: unset;
  }

  .community-note {
    background-color: var(--bg_panel);
    border: unset;
    border-top: solid 1px var(--dark_grey);
    border-radius: unset;
    margin-top: 0;

    &:hover {
      border-top-color: var(--grey);
    }

    .community-note-header {
      background-color: var(--bg_panel);
      padding-bottom: 0;
    }
  }
}

.unavailable-quote {
  padding: 12px;
  display: block;
}

.quote-link {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  position: absolute;
}

.quote-media-container {
  max-height: 300px;
  display: flex;

  .card {
    margin: unset;
  }

  .attachments {
    border-radius: 0;
  }

  .media-gif {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .media-gif > .attachment {
    display: flex;
    justify-content: center;
    background-color: var(--bg_color);

    video {
      height: unset;
      width: unset;
      max-height: 100%;
      max-width: 100%;
    }
  }

  .gallery-row .attachment,
  .gallery-row .attachment > video,
  .gallery-row .attachment > img {
    max-height: 300px;
  }

  .still-image img {
    max-height: 250px;
  }
}
