@import "../../variables.scss";

.pool {
  @extend %col-nowrap;
  height: 100%;
  background-color: $white;

  &__liquidity-container {
    @extend %row-nowrap;
    align-items: center;
    font-size: .75rem;
    padding: .625rem 1rem;
    font-size: .75rem;
    color: $dove-gray;

    img {
      height: .75rem;
      width: .75rem;
    }
  }

  &__liquidity-label {
    flex: 1 0 auto;
  }

  &__summary-panel {
    @extend %col-nowrap;
    padding: 1rem 0;
  }

  &__last-summary-text {
    margin-top: 1rem;
  }

  &__exchange-rate-wrapper {
    @extend %row-nowrap;
    align-items: center;
    color: $dove-gray;
    font-size: .75rem;
    padding: .25rem 1rem 0;
  }

  &__exchange-rate {
    flex: 1 1 auto;
    width: 0;
    color: $chalice-gray;
  }

  &__cta-container {
    display: flex;
  }

  &__cta-btn {
    @extend %primary-button;
    margin: 2rem auto 0;

    &--inactive {
      background: $mercury-gray;
    }
  }
}

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

  &__item {
    padding: 1rem;
    font-size: 1rem;

    &:hover {
      background-color: $concrete-gray;

      .token-modal__token-label {
        color: $black;
      }
    }

    &:active {
      background-color: darken($concrete-gray, 1);
    }
  }
}

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

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