@use 'styles/mixins' as *;

:host {
  position: relative;
  display: block;
  padding: 20px 28px;
  border: 1px solid var(--color-secondary);
  border-radius: 8px;
}

.content {
  @include flex(center);

  transition: all 150ms ease-in-out;

  &--harmful {
    opacity: 0.1;
    filter: blur(2px);
  }
}

.info {
  @include flex(null, null, column);

  width: 450px;
  margin-left: 24px;
}

.header {
  @include flex(center);
}

.title {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.id {
  margin: 1px 0 0 8px;
  color: var(--color-text-secondary);
  font-size: 12px;
}

.description {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  font-size: 12px;
  word-wrap: break-word;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.voting-period {
  margin-top: 12px;
  color: var(--color-text-secondary);
  font-size: 10px;
}

.status-button {
  margin-left: auto;

  &.shimmer {
    @include rectangle(80px, 18.4px);
  }
}

.harmful-proposal-overlay {
  @include rectangle(calc(100% - 56px), calc(100% - 40px));

  position: absolute;
  top: 20px;
}
