.bx-cell {
  box-sizing: border-box;
  padding-left: 15px;
  font-size: 15px;
  color: @textColorPrimary;
  background-color: @colorWhite;
  .flexbox();
  .bx-cell-left {
    padding: 15px 15px 15px 0;
  }
  .bx-cell-inner {
    position: relative;
    padding: 15px 15px 15px 0;
    .flexbox();
    .align-items(center);
    .flex();
    &:after {
      .border-bottom()
    }
    .bx-cell-label {
      width: 70px;
      margin-right: 15px;
      &.bx-cell-label--lg {
        width: 110px;
      }
    }
    .bx-cell-title {
      .flex();
    }
    .bx-cell-input {
      .flex();
      input {
        width: 100%;
        font-size: 15px;
        height: 21px;
        line-height: 21px;
        color: @textColorPrimary;
        .input();
        .placeholder();
      }

    }
    .bx-cell-extra {
      padding-left: 15px;
      .bx-icon {
        font-size: 16px;
        color: #ccc;
      }
      .bx-image-responsive {
        width: 24px;
      }
    }
    .bx-cell-link {
      color: @colorPrimary;
    }
    .bx-cell-btn {
      padding: 5px 9px;
      border: 1px solid @colorPrimary;
      border-radius: 2px;
      color: @colorPrimary;
    }
    .bx-cell-button {
      padding: 5px 9px;
      border: 1px solid @colorPrimary;
      border-radius: 2px;
      color: @colorPrimary;
    }
  }
  .bx-cell-right {
    padding: 15px 15px;
  }
}

.bx-accordion-cells {
  .bx-accordion-header {
    .bx-cell-extra {
      .bx-icon {
        font-size: 15px;
        &:before {
          content: "\e6b4";
        }
      }
    }
  }
  .bx-accordion-body {
    display: none;
    .bx-cell {
      background-color: #f8f8f8;
      .bx-cell-extra {
        .bx-icon {
          font-size: 15px;
        }
      }
    }
  }
  &.bx-accordion-active {
    .bx-accordion-header {
      .bx-cell-extra {
        .bx-icon {
          &:before {
            content: "\e6b6";
          }
        }
      }
    }
    .bx-accordion-body {
      display: block;
    }
  }
}

.bx-radio-cells {
  .bx-cell {
    height: 50px;
  }
  .bx-cell-radio {
    margin-right: 15px;
    .bx-cell-input {
      display: none;
      &:checked {
        & + .bx-icon {
          color: @colorPrimary;
          &:before {
            content: "\e6ba";
          }
        }
      }
    }
    .bx-icon {
      font-size: 18px;
      color: #ccc;
      &:before {
        content: "\e6bc";
      }
    }
    &.bx-cell-checked-tick {
      .bx-cell-input {
        & + .bx-icon {
          font-size: 24px;
          &:before {
            content: "";
          }
        }
        &:checked {
          & + .bx-icon {
            display: block;
            &:before {
              content: "\E6BB";
            }
          }
        }
      }
    }
  }
  .bx-cell-label {
    .flex();
  }
}
.bx-radio-inline{
  .flexbox();
  .bx-cell{
    height: auto;
    padding: 0;
    margin-left: 15px;
    .bx-cell-input{
      display: none;
      &:checked{
        &+.bx-cell-radio{
          border-color: @colorPrimary;
          color: @colorPrimary;
        }
      }
    }
    .bx-cell-radio{
      padding: 5px 9px;
      margin: 0;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 13px;
      color: @textColorPrimary;
    }
  }
  &.bx-radio-multiline{
    .flex-wrap(wrap);
    padding-top: 10px;
    .bx-cell{
      margin-bottom: 10px;
    }
  }
}
.bx-checkbox-cells {
  .bx-cell {
    height: 50px;
  }
  .bx-cell-checkbox {
    margin-right: 15px;
    .bx-cell-input {
      display: none;
      &:checked {
        & + .bx-icon {
          color: @colorPrimary;
          &:before {
            content: "\e6ba";
          }
        }
      }
    }
    .bx-icon {
      font-size: 18px;
      color: #ccc;
      &:before {
        content: "\e6bc";
      }
    }
    &.bx-cell-checked-tick {
      .bx-cell-input {
        & + .bx-icon {
          font-size: 24px;
          &:before {
            content: "";
          }
        }
        &:checked {
          & + .bx-icon {
            display: block;
            &:before {
              content: "\E6BB";
            }
          }
        }
      }
    }
  }
  .bx-cell-label {
    .flex();
  }
}
.bx-checkbox-inline{
  .flexbox();
  .bx-cell{
    height: auto;
    padding: 0;
    margin-left: 15px;
    .bx-cell-input{
      display: none;
      &:checked{
        &+.bx-cell-checkbox{
          border-color: @colorPrimary;
          color: @colorPrimary;
        }
      }
    }
    .bx-cell-checkbox{
      padding: 5px 9px;
      margin: 0;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 13px;
      color: @textColorPrimary;
    }
  }
  &.bx-checkbox-multiline{
    .flex-wrap(wrap);
    padding-top: 10px;
    .bx-cell{
      margin-bottom: 10px;
    }
  }
}

.bx-switch {
  position: relative;
  box-sizing: border-box;
  width: 52px;
  height: 32px;
  outline: 0;
  border: 0;
  border-radius: 40px;
  background: rgba(0, 0, 0, .1);
  appearance: none;
  &:checked {
    &:before {
      content: "";
      background: @colorPrimary;
    }
    &:after {
      left: 21px;
    }
  }
  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 30px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 40px;
    background: #fff;
    transition: background-color 0.1s, border 0.1s;
  }
  &:after {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 999px;
    background: #fff;
    transition: left 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35)
  }
  &.bx-switch-transform {
    &:after {
      transition: transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35), -webkit-transform 0.35s cubic-bezier(0.4, 0.4, 0.25, 1.35);
    }
    &:checked {
      &:after {
        left: 0;
        transform: translateX(21px);
      }
    }
  }
}

.bx-number-control {
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 2px;
  color: @textColorPrimary;
  .flexbox();
  .align-items(center);
  .bx-number-minus {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    &:before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 40%;
      height: 1px;
      background-color: @textColorPrimary;
      transform: translate(-50%, -50%);
    }
  }
  .bx-number-plus {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    &:before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 40%;
      height: 1px;
      background-color: @textColorPrimary;
      transform: translate(-50%, -50%);
    }
    &:after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 40%;
      height: 1px;
      background-color: @textColorPrimary;
      transform: translate(-50%, -50%) rotate(90deg);
    }
  }
  .bx-number-input {
    width: 50px;
    height: 26px;
    border: 0;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-radius: 0;
    font-size: 13px;
    text-align: center;
    color: @textColorPrimary;
  }
  .bx-number-disabled{
    color:#ccc;
    &:before{
      background-color: #ccc;
    }
    &:after{
      background-color: #ccc;
    }
  }
}
