@import 'app/style/default.scss';

#FirmTradeIndex, #FirmOrderIndex {
  padding-bottom: pxToRem(30);
  #PriceList li {
    height: pxToRem(100);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    .chineseName, .englishName {
      font-size: 18px;
    }
    .englishName {
      font-size: 16px;
      margin-top: pxToRem(8);
    }
    .small {
      font-size: 15px;
    }
    .big {
      font-size: 25px;
      margin-bottom: -3px;
    }
  }
  .trade-header, .order-header {
    background-color: #212138;
    color: $white;
    font-size: pxToRem(36);
    label {
      font-size: pxToRem(34);
    }
  }
  .firm-content {
    overflow: hidden;
    color: $form-primary-color;
    font-size: $font-size30;
    padding: 0 pxToRem(30);
    .item {
      width: 47%;
      float: left;
      margin-top: pxToRem(40);
      label {
        display: inline-block;
        margin-bottom: pxToRem(20);
        width: 100%;
        font-size: 15px;
      }
      span {
        display: inline-block;
        width: 48%;
        border: 1px solid $btn-bg-color;
        line-height: pxToRem(76);
        text-align: center;
        color: $btn-bg-color;
        background: #fff;
        &:last-child {
          border-top-right-radius: pxToRem(8);
          border-bottom-right-radius: pxToRem(8);
        }
      }
      .left-item {
        border-top-left-radius: pxToRem(8);
        border-bottom-left-radius: pxToRem(8);
      }
      .active-span {
        color: #fff;
        background: $btn-bg-color;
      }
      input, select {
        display: block;
        width: 98%;
        padding-left: pxToRem(10);
        border: 1px solid #dddddd;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
      }
      input {
        line-height: pxToRem(90);
        height: pxToRem(90);
      }
      select {
        line-height: pxToRem(76);
        height: pxToRem(76);
        background: #dddddd;
        border-radius: pxToRem(8);
      }
      .available-balance {
        text-align: right;
        white-space: nowrap;
        text-overflow: ellipsis;
        color: $price-bg-up;
        float: right;
        letter-spacing: -1px;
      }
    }
    .item:nth-child(2) {
      float: right;
    }
    .account-budget-content {
      color: $price-bg-up;
      line-height: pxToRem(100);
      display: block;
      width: 100%;
      float: left;
    }
  }
  .slider-content {
    position: relative;
    font-size: $font-size30;
    padding: 0 pxToRem(30) pxToRem(20) pxToRem(30);
    background: #fff;
    color: #555555;
    overflow: hidden;
    &::before {
      @include borderTop(#EAEAEA)
    }
    &::after {
      @include borderBottom(#EAEAEA)
    }
    .slider-title {
      position: relative;
      width: 100%;
      height: pxToRem(88);
      display: -webkit-flex;
      display: flex;
      -webkit-justify-content: space-between;
      justify-content: space-between;
      -webkit-align-items: center;
      align-items: center;
      margin-bottom: pxToRem(44);
      &::after {
        @include borderBottom(#EAEAEA);
      }
      .questionMark {
        width: pxToRem(36);
        height: pxToRem(36);
        margin-left: pxToRem(20);
      }
      label:first-child {
        height: 100%;
        display: -webkit-flex;
        display: flex;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        -webkit-align-items: center;
        align-items: center;
      }
    }
    .am-slider-rail {
      background-color: #a9d8f6;
      height: pxToRem(6);
    }
    .am-slider-track {
      background-color: #309fea;
      height: pxToRem(6);
    }
    .am-slider {
      margin: 0 !important;
    }
    .am-slider-handle {
      margin-left: 0;
      margin-top: -5px;
      width: pxToRem(24);;
      height: pxToRem(24);;
      border: 2px solid #108ee9;
      background-color: #108ee9;
    }
  }
  .mark-content {
    padding: pxToRem(30) pxToRem(20) 0;
    width: 97%;
    display: inline-flex;
    justify-content: space-between;
    span {
      display: inline-block;
      line-height: pxToRem(60);
      text-align: center;
    }
  }
  .H5NumberInputWrap {
    height: 44px;
    position: relative;
    overflow: visible;
    &::after {
      content: '';
      position: absolute;
      top: 0;
      left: -1px;
      border-left: 1px solid #DDDDDD;
      border-right: 1px solid #DDDDDD;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      width: 201%;
      height: 200%;
      -webkit-transform: scale(0.5);
      transform: scale(0.5);
      -webkit-transform-origin: left top;
      transform-origin: left top;
      z-index: 1;
    }
    .H5NumberInput {
      height: 100%;
      position: relative;
      z-index: 10;
    }
    .am-list-body::before {
      content: '';
    }
    .am-list-body::after {
      content: '';
    }
  }
}

#FirmTradeIndex {
  .tradeBtn {
    position: absolute;
    bottom: pxToRem(30);
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}