@import (reference) './variable.less';

@radioItemPrefix: ant-radio-item;

.@{radioItemPrefix} {
  color: @radio-text-color;
  margin-right: 16 * @rpx;

  /// #if WECHAT
  // 支付宝默认 label 的高度
  height: 59.6 * @rpx;
  line-height: 59.6 * @rpx;
  // 在 label 内嵌一个 view, 微信会变成 block 组件
  display: inline-block;
  /// #endif

  &-container {
    display: flex;
    align-items: center;
  }

  &-content {
    padding-left: 10 * @rpx;
    text-align: left;
  }
  &-wrap {
    position: relative;
    width: @radio-size;
    height: @radio-size;
    flex: 0 0 @radio-size;
  }
  &-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
  }
  &-fake {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    &-icon {
      background-color: @radio-fake-icon-background-color;
      border: @radio-border-width solid @radio-border-color;
      border-radius: @radio-corner-radius;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
    }
    &-checkedIcon {
      border-radius: @radio-corner-radius;
      background-color: @radio-background-color;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      &-icon {
        color: @radio-icon-color;
        font-size: 28 * @rpx;
      }
    }
    &-disbaledIcon {
      box-sizing: border-box;
      border: @radio-border-width solid @radio-border-color;
      border-radius: @radio-corner-radius;
      width: 100%;
      height: 100%;
      background-color: @radio-disabled-background;
    }
    &-disabledCheckedIcon {
      box-sizing: border-box;
      border: @radio-border-width solid @radio-border-color;
      background-color: @radio-disabled-background;
      border-radius: @radio-corner-radius;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      &-icon {
        color: @radio-border-color;
        font-size: 28 * @rpx;
      }
    }
  }
  &-disabled {
    opacity: @opacity-disabled;
  }
  // .ant-list-item-image-container {
  //   display: flex;
  //   justify-content: center;
  //   align-items: center;
  // }
}
