// ============================================================================
// :: Account select
// ============================================================================
/**
 * Component use to indicate what the selected account is or it can be used
 * to open up more accounts to choose between.
 */

// ============================================================================
// :: Root
// ============================================================================
// .m-account-select {}

// ============================================================================
// :: Elements
// ============================================================================
.m-account-select__label {
  display: block;

  margin-bottom: 1rem;

  font-family: $font-family-sora;
  font-weight: $font-weight-bold;
  font-size: $font-size-1x-small;
  line-height: $line-height-1x-small;

  color: $text-color-base;

  @include respond-at($breakpoint-tablet-default) {
    font-size: $font-size-base;
    line-height: $line-height-base;
  }
}

.m-account-select__content {
  position: relative;

  padding: 1rem;

  border: $border-width-base solid $border-color-1x-light;
  border-radius: $border-radius-base;
}

// ============================================================================
// :: Modifiers
// ============================================================================
.m-account-select--expand {

  .m-account-select__content {

    &::before,
    &::after {
      position: absolute;
      bottom: -1.3rem;
    }

    &::before {
      @extend %__icon-chevron-down;

      left: 50%;
      z-index: $z-index-floor + 1;

      transform: translateX(-50%);
    }

    &::after {
      content: "";

      left: 0;
      z-index: $z-index-floor;

      width: 100%;
      height: 1.5rem;

      background-image: url("/assets/general/img/account/shape.svg");
      background-repeat: no-repeat;
      background-position: center bottom;
      background-size: contain;
    }
  }
}
