:host {
  display: inline-block;
  --hb-radio-font-size: 14px;
  --hb-radio-color: var(--hb-color-primary);
  --hb-radio-border-color: var(--hb-border-color, #dcdfe6);
  --hb-radio-text-color: var(--hb-color-text-regular, #606266);
  --hb-radio-disabled-color: var(--hb-color-text-disabled, #c0c4cc);
}

.hb-radio {
  color: var(--hb-radio-text-color);
  font-weight: 500;
  font-size: var(--hb-radio-font-size);
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  user-select: none;
  margin-right: 30px;
}

.hb-radio:last-child {
  margin-right: 0;
}

.hb-radio__input {
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  position: relative;
  vertical-align: middle;
}

.hb-radio__original {
  opacity: 0;
  outline: none;
  position: absolute;
  margin: 0;
  width: 0;
  height: 0;
  z-index: -1;
}

.hb-radio__inner {
  border: 1px solid var(--hb-radio-border-color);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  background-color: var(--hb-color-white, #ffffff);
  position: relative;
  cursor: pointer;
  display: inline-block;
  box-sizing: border-box;
  transition: all 0.2s;
}

.hb-radio__inner::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--hb-color-white, #ffffff);
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease-in;
}

.hb-radio--checked .hb-radio__inner {
  border-color: var(--hb-radio-color);
  background: var(--hb-radio-color);
}

.hb-radio--checked .hb-radio__inner::after {
  transform: translate(-50%, -50%) scale(1);
}

.hb-radio__label {
  padding-left: 8px;
  line-height: 1;
  font-size: var(--hb-radio-font-size);
}

.hb-radio--disabled {
  cursor: not-allowed;
}

.hb-radio--disabled .hb-radio__inner {
  background-color: var(--hb-fill-color-light, #f5f7fa);
  border-color: var(--hb-radio-border-color);
  cursor: not-allowed;
}

.hb-radio--disabled .hb-radio__label {
  color: var(--hb-radio-disabled-color);
  cursor: not-allowed;
}

.hb-radio--border {
  padding: 9px 15px 9px 9px;
  border-radius: 4px;
  border: 1px solid var(--hb-radio-border-color);
  box-sizing: border-box;
  white-space: nowrap;
}

.hb-radio--border.hb-radio--checked {
  border-color: var(--hb-radio-color);
}

.hb-radio--border.hb-radio--disabled {
  border-color: var(--hb-radio-border-color);
  cursor: not-allowed;
}

.hb-radio--small {
  font-size: 12px;
}

.hb-radio--small .hb-radio__inner {
  width: 12px;
  height: 12px;
}

.hb-radio--small .hb-radio__inner::after {
  width: 3px;
  height: 3px;
}

.hb-radio--small .hb-radio__label {
  padding-left: 6px;
}

.hb-radio--large {
  font-size: 16px;
}

.hb-radio--large .hb-radio__inner {
  width: 16px;
  height: 16px;
}

.hb-radio--large .hb-radio__inner::after {
  width: 5px;
  height: 5px;
}

.hb-radio--large .hb-radio__label {
  padding-left: 10px;
}

.hb-radio:hover:not(.hb-radio--disabled) .hb-radio__inner {
  border-color: var(--hb-radio-color);
}

