@import '../../variables.scss';

.web3-status {
  @extend %row-nowrap;
  height: 2rem;
  font-size: 0.9rem;
  align-items: center;
  border: 1px solid $mercury-gray;
  padding: 0.5rem;
  border-radius: 2rem;
  color: $dove-gray;
  font-weight: 400;
  box-sizing: border-box;

  &__identicon {
    height: 1rem;
    width: 1rem;
    border-radius: 1.125rem;
    background-color: $silver-gray;
  }

  &__text {
    flex: 1 1 auto;
    overflow: hidden;
    margin-right: 0.75rem;
    margin-left: 0.25rem;
    font-size: 0.75rem;
  }

  &__pending-container {
    display: flex;
    justify-content: space-around;
  }

  &--pending {
    background-color: $zumthor-blue;
    color: $royal-blue;
    border: 1px solid $royal-blue;
  }
}

.pending-modal {
  background-color: $white;
  position: relative;
  bottom: 12rem;
  height: 12rem;
  width: 100%;
  z-index: 2000;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  transition: 250ms ease-in-out;

  &__transaction-list {
    height: 12rem;
    overflow-y: auto;
  }

  &__transaction-row {
    @extend %row-nowrap;
    box-sizing: border-box;
    align-items: center;
    padding: 0.25rem 1.5rem;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
    user-select: none;
  }

  &__transaction-label {
    color: $royal-blue;
    width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 200;
  }

  &__pending-indicator {
    @extend %row-nowrap;
    color: $royal-blue;
    border: 1px solid $royal-blue;
    background-color: $zumthor-blue;
    padding: 0.5rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;

    & > .loading {
      margin-right: 0.5rem;
    }
  }

  &__header {
    font-size: 1rem;
    color: $dove-gray;
    padding: 1rem 1.5rem 0.25rem 1.5rem;
  }
}

.pending-modal-appear {
  bottom: 0;
}

.pending-modal-appear.modal-container-appear-active {
  bottom: 0;
}
