.WebPagePreview {
  height: 2.625rem;
  transition: height 150ms ease-out, opacity 150ms ease-out;

  &:not(.open) {
    height: 0 !important;
  }

  & > div {
    display: flex;
    align-items: center;
    padding-right: 0.625rem;
    padding-top: 0.45rem;
  }

  --accent-color: var(--color-primary);

  .ComposerEmbeddedMessage + & {
    margin-top: 0.75rem;
  }

  & > div > .Button {
    flex-shrink: 0;
    background: none !important;
    width: 2.125rem;
    height: 2.125rem;
    margin: 0 0.625rem;
    padding: 0;
    align-self: center;
  }

  .WebPage {
    flex-grow: 1;
    margin: 0.1875rem 0 0.1875rem 0.125rem;
    max-width: calc(100% - 3.375rem);

    &::before {
      top: .1rem;
      bottom: .05rem;
    }

    &.with-video .media-inner { // TODO add support for video in previews in composer
      display: none;
    }

    .site-title,
    .site-description {
      flex: 1;
      max-width: 100%;
      max-height: 1rem;
    }

    .site-title {
      margin-top: .125rem;
      margin-bottom: 0.1875rem;
    }

    .site-description {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
}
