@use 'styles/mixins' as *;

:host {
  @include flex(center);

  padding: 20px 28px;
  border: 1px solid var(--color-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 100ms ease-in-out;

  &:hover {
    background-color: rgba(var(--color-secondary-rgb), 0.4);
  }
}

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

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

.header {
  @include flex(center);

  font-size: 18px;
}

.ticker {
  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;
}

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

.keplr {
  @include flex(center);

  margin-left: auto;
  color: var(--color-primary);
  user-select: none;

  &:not(.is-registered) {
    transition: opacity 100ms ease-in-out;

    &:hover {
      opacity: 0.5;
    }
  }

  &.not-installed {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

.keplr-icon {
  @include rectangle(14px);

  margin-left: 4px;
}
