@charset "utf-8";

.x-radio {
  display: flex;
  align-items: center;
  &__icon {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    overflow: hidden;
    transition: all 0.1s ease-out;
  }

  &__tick {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: url('./icon-checked.png') center no-repeat;
    background-size: 50%;
    transform: translate(0, -100%);
    transition: all 0.2s ease-out;
  }

  &__text {
    display: block;
    font-size: 26px;
    color: #888;
    margin-left: 10px;
  }

  &__checked {
    .x-radio__icon {
      background: #00bb44;
    }
    .x-radio__tick {
      transform: translate(0, 0);
    }
    .x-radio__text {
      color: #333;
    }
  }

  &__disabled {
    .x-radio__text {
      color: #bbb;
    }
  }
}
