@import (reference) '~assets/styles/shared';

.Notification {
  background-color: @color-lightpurple;
  border-bottom: 1px solid @color-gray;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  padding: 16px 24px;
  position: relative;
  text-overflow: ellipsis;
  white-space: nowrap;

  &:last-of-type {
    border-bottom: 0;
  }
}

.Notification__seen {
  background-color: @color-darkpurple;
}

.Notification__row {
  display: flex;
}

.Notification__column {
  display: flex;
  flex-direction: column;
}

.Notification__closeButton {
  display: block;
}

.Notification__closeButtonHidden {
  display: none;
}

.Notification__title {
  color: @color-white;
  flex: 0 1 auto;
  font-size: @font-size-medium;
  font-weight: bold;
  height: 1rem;
  margin: 0 0.625rem 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: flex 1000ms ease-in;
  white-space: nowrap;
  width: 17.188rem;
}

.Notification__title::first-letter {
  text-transform: capitalize;
}

.Notification__status {
  color: @color-white;
  font-size: @font-size-extra-small;
  font-weight: 500;
  height: 0.688rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.Notification__etherLink {
  color: @color-white;
  font-size: @font-size-extra-small;
  font-weight: 500;
  text-decoration: underline;
}

.Notification__dot {
  flex: 0 1rem;
  height: 1rem;
  left: 0.5rem;
  margin-top: -0.025rem;
  position: absolute;
  transition: flex 500ms ease-out;
  width: 1rem;
}

.Notification__dot-seen {
  flex: 0 0 0;
  height: 0;
  margin: 0;
  transition: flex 500ms ease-out;
  width: 0;
}

.Notification__close {
  align-self: baseline;
  margin-left: auto;
  width: 12px;
}

.Notification__description {
  flex: 1 0 100%;
  font-size: @font-size-small;
  height: 0.875rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
  padding-right: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 17.188rem;
}

.Notification__time {
  color: @color-white;
  font-size: @font-size-extra-small;
  margin-right: 0.25rem;
}

@media @breakpoint-mobile {
  .Notification__description {
    flex: 1 0 100%;
    font-size: @font-size-small;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
