@charset "utf-8";
@import "../helpers/index";
/**
 * radio
 * --------------------------------------------------
 */
.item-radio{
  background-color: transparent;
  //height: 20px;
  padding:0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;

  >.radio{
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: -10px;
    margin-bottom: -10px;
  }
}

.radio{
  cursor: pointer;
  position: relative;
  left: 0px;
  right: 0px;
  z-index: 3;

  @extend .flex;
  @extend .items-center;

  & span{
    line-height:130%;
    display: inline-block;
  }

  & ion-radio{
    margin-right:10px;
    position: static; // 扩大ion-radio点击范围
    width: 20px;
    height: 20px;
    min-width:20px;
    max-width:20px;
    display: block;
    border: 0;
    background: 0 0;
    -webkit-appearance: none;

    & .radio-icon{
      display: table;
      width: 20px;
      height: 20px;
      border-width: 1px;
      //@include border-width(1px);
      border-style: solid;
      border-color: $primary;
      -webkit-border-radius:50%;
      border-radius:50%;
      background: 0 0;
      content: ' ';
      -webkit-transition: background-color 20ms ease-in-out;
      transition: background-color 20ms ease-in-out;
    }

    & .radio-icon.radio-checked{
      border-color: $primary;
    }

    & .radio-inner{
      -webkit-transition: opacity .05s ease-in-out;
      transition: opacity .05s ease-in-out;
      background-color: $primary;
      position: absolute;
      -webkit-border-radius:50%;
      border-radius:50%;
      top:2px !important;
      left:2px !important;
      display: table;
      width: 14px !important;
      height: 14px !important;
      content: ' ';
      opacity: 0;
    }

    & .radio-checked .radio-inner {
      opacity: 1;
    }
  }
}