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

.AccountWithdraw {
  background: white;
  padding: 5.5rem 4.625rem 7rem;
}

.AccountWithdraw__heading {
  margin-bottom: 2.5rem;

  > h1 {
    color: @color-darkpurple;
    display: inline-block;
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: 0.14rem;
    margin-bottom: 0;
    margin-right: 1rem;
    text-transform: uppercase;
  }
}

.AccountWithdraw__main {
  display: flex;
  max-width: @max-width;

  > div {
    padding-left: 5%;
    padding-right: 5%;

    &:first-child {
      padding-left: 0;
      width: 33%;
    }

    &:last-child {
      overflow: hidden;
      padding-right: 0;
      width: 67%;
    }

    &:not(:first-child) {
      border-left: 1px solid @color-lightergray;
    }
  }
}

.AccountWithdraw__description {
  > p {
    font-size: @font-size-large;
    line-height: 1.5rem;
    margin: 0 0 1.5rem;
  }

  > a {
    &:extend(.caps--large);

    color: @color-purple;
    font-weight: 500;
  }
}

.AccountWithdraw__form-fields {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.AccountWithdraw__input-wrapper {
  margin-bottom: 1.375rem;
  width: 100%;

  input[type='number'] {
    appearance: textfield;
  }

  input[type=number]::-webkit-outer-spin-button,
  input[type=number]::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
  }

  &:first-child,
  &:nth-child(2) {
    width: 48%;
  }

  &:first-child {
    > div {
      padding-bottom: 0.7rem;
      padding-top: 0.7rem;
    }
  }

  > label {
    color: @color-darkpurple;
    font-weight: 500;
  }
}

.AccountWithdraw__submitButton {
  &:extend(.button--purple all);

  float: right;
}

@media @breakpoint-mobile {
  .AccountWithdraw {
    padding: 3.125rem 2rem;
  }

  .AccountDeposit__heading {
    margin-bottom: 1rem;
  }

  .AccountWithdraw__main {
    display: block;

    > div:first-child,
    > div:last-child {
      border-left: none;
      padding: 0;
      width: 100%;
    }

    > div:last-child {
      margin-top: 2rem;
    }
  }
}

@media @breakpoint-mobile-medium {
  .AccountWithdraw__heading {
    margin-bottom: 1rem;

    > h1 {
      font-size: @font-size-rather-large;
    }
  }

  .AccountWithdraw__description {
    > p {
      font-size: @font-size-normal;
      line-height: @font-size-somewhat-large;
    }
  }

  .AccountWithdraw__input-wrapper {
    &:first-child,
    &:nth-child(2) {
      width: 100%;
    }
  }
}
