.loading-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.readwise {
  margin-bottom: 3rem;
  padding: .5rem;
  background: var(--color-card-hover);
  border-radius: var(--radius-outer);

  @media (prefers-color-scheme: dark) {
    background: var(--color-border);
  }
}

.readwise a {
  text-decoration: none !important;
  white-space: unset !important;
  display: unset !important;
  margin-left: 0 !important;
}

.readwise a:hover {
  cursor:alias;
}

.readwise a::before {
  background-color: inherit !important;
  transition: none !important;
}

.readwise-head {
  position: relative;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  align-content: center;
  margin: .25rem .25rem .65rem .25rem;
}

.readwise-avatar {
  position: relative;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(105, 105, 105, 0.1);
  flex-shrink: 0;
}

.readwise-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.readwise-userinfo {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
}

.readwise-author {
  font-size: inherit;
}

.readwise-time {
  color: var(--color-grey);
  opacity: 0.65;
  font-size: 0.9rem;
}

.readwise-summary {
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
  transition-property: all;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: .15s;
  padding: 1rem;
  background-color: var(--color-background);
  border-radius: 8px;
}

/* .readwise-summary:hover {
  max-height: 11rem;
}

.readwise-summary::after {
  content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(to bottom, transparent, var(--color-background));
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
}

.readwise-summary:hover::after{
  height: 50%;
} */


.tweet__logo {
  position: absolute;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(105, 105, 105, 0.1);
  flex-shrink: 0;
  bottom: 0;
  left: 0;
  transform: translate(calc(48px - 55%), 0);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  display: none;
}

.tweet__logo img {
  width: 60%;
  height: 60%;
  position: relative;
  z-index: -1;
  transform: translate(0.5px, 0.5px);
}

.readwise-author-twitter {
  font-size: .9rem;
  color: var(--color-grey);
  opacity: 0.65;
}

.readwise-summary p {
  font-size: 0.96rem;
  margin-bottom: -0.125rem;
  text-align: justify;
  color: var(--color-foreground);
  opacity: .85;
}

#icon-twitter {
  color: var(--color-grey);
  opacity: .5;
}

#icon-twitter:hover {
  color: #4a99e9;
  opacity: 1;
}

.readwise-twlogo {
  display: flex;
  align-content: center;
  justify-content: center;
}
