/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-checkbox {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: scale-px(32px);
}
.nut-checkbox.nut-checkbox-nolabel {
  min-width: scale-px(32px);
  justify-content: center;
}
.nut-checkbox-icon {
  color: var(--nutui-color-text-disabled);
  background-color: var(--nutui-color-surface-2);
  transition-duration: 0.3s;
  transition-property: color, border-color, background-color;
  font-size: var(--nutui-checkbox-icon-font-size, var(--nutui-font-text-large));
  border-radius: 50%;
  flex-shrink: 0;
}
.nut-checkbox-icon-wrap {
  font-size: 0px;
  line-height: 0;
  border-radius: 50%;
  box-shadow: none;
}
.nut-checkbox-icon-checked {
  color: var(--nutui-color-primary, #ff6666);
  background-color: #ffffff;
  transition-duration: 0.3s;
  transition-property: color, border-color, background-color;
  border-radius: 50%;
  box-shadow: none;
}
.nut-checkbox-icon-checked.nut-checkbox-icon-disabled {
  color: var(--nutui-color-primary-disabled-special, #ffadbe);
  background-color: var(--nutui-color-surface-2);
  box-shadow: none;
}
.nut-checkbox-label {
  margin-left: var(--nutui-checkbox-label-margin-left, var(--nutui-spacing-2, 4px));
  font-size: var(--nutui-checkbox-label-font-size, var(--nutui-font-text));
  color: var(--nutui-checkbox-label-color, var(--nutui-color-text));
  flex-shrink: 0;
}
.nut-checkbox-label-disabled {
  color: var(--nutui-color-text-disabled);
}
.nut-checkbox-icon-indeterminate {
  color: var(--nutui-color-primary, #ff6666);
  background-color: #ffffff;
  box-shadow: none;
  border-radius: 50%;
}
.nut-checkbox-icon-indeterminate.nut-checkbox-icon-disabled {
  color: var(--nutui-color-primary-disabled-special, #ffadbe);
  background-color: var(--nutui-color-surface-2);
  box-shadow: none;
}
.nut-checkbox-icon-disabled {
  color: var(--nutui-color-text-disabled);
  background-color: var(--nutui-color-surface-2);
  border-radius: 50%;
  box-shadow: none;
}
.nut-checkbox-reverse {
  flex-direction: row-reverse;
}
.nut-checkbox-reverse .nut-checkbox-label {
  margin-right: var(--nutui-checkbox-label-margin-left, var(--nutui-spacing-2, 4px));
  margin-left: 0;
}
.nut-checkbox-button {
  position: relative;
  /* #ifdef dynamic */
  display: flex;
  /* #endif */
  /* #ifndef dynamic */
  display: inline-flex;
  /* #endif */
  align-items: center;
  min-height: scale-px(32px);
  padding: var(--nutui-checkbox-button-padding, 5px 18px);
  font-size: var(--nutui-checkbox-button-font-size, var(--nutui-font-text));
  background: var(--nutui-color-surface-1);
  border-radius: var(--nutui-checkbox-button-border-radius, var(--nutui-radius-xs));
  color: var(--nutui-checkbox-label-color, var(--nutui-color-text));
  box-sizing: border-box;
  border: scale-px(1px) solid var(--nutui-color-surface-1);
  overflow: hidden;
}
.nut-checkbox-button-active {
  background: var(--nutui-color-primary-light-pressed, #ffcccc);
  color: var(--nutui-color-primary, #ff6666);
  border: var(--nutui-checkbox-button-active-border, 1px solid var(--nutui-color-primary-light, #ffe5e5));
}
.nut-checkbox-button-disabled {
  color: var(--nutui-color-text-disabled);
  border: scale-px(1px) solid var(--nutui-color-surface-1);
}
.nut-checkbox-button-icon {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-top: var(--nutui-icon-size-10, 10px) solid transparent;
  border-left: var(--nutui-icon-size-10, 10px) solid transparent;
  border-bottom: var(--nutui-icon-size-10, 10px) solid var(--nutui-color-primary, #ff6666);
  border-right: var(--nutui-icon-size-10, 10px) solid var(--nutui-color-primary, #ff6666);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.nut-checkbox-button .nut-checkbox-button-icon-checked {
  width: scale-px(12px);
  height: scale-px(12px);
  position: absolute;
  color: #ffffff;
  right: 0;
  bottom: 0;
  transform: translate(scale-px(-1px), scale-px(-2px));
}
.nut-checkbox-button .nut-icon {
  position: absolute;
  font-size: var(--nutui-font-text-small);
  width: scale-px(12px);
  height: scale-px(12px);
}
.nut-checkbox-button .nut-icon:before {
  top: auto;
  bottom: scale-px(-22px);
  margin-left: scale-px(6px);
}
.nut-checkbox .nut-checkbox-button-active.nut-checkbox-button-disabled {
  background: var(--nutui-color-text-disabled);
  color: #ffffff;
  border: scale-px(1px) solid var(--nutui-color-text-disabled);
}
.nut-checkbox-list-item {
  display: flex;
  justify-content: space-between;
  padding: var(--nutui-checkbox-list-item-padding, 12px 12px 12px 0);
  border-top: var(--nutui-checkbox-list-item-border, 1px solid var(--nutui-color-border));
}
.nut-checkbox-list-item .nut-checkbox-label {
  flex: none;
}
.nut-checkbox-list-item .nut-icon {
  flex: none;
}

[dir=rtl] .nut-checkbox-label,
.nut-rtl .nut-checkbox-label {
  margin-left: 0;
  margin-right: var(--nutui-checkbox-label-margin-left, var(--nutui-spacing-2, 4px));
}
[dir=rtl] .nut-checkbox-reverse .nut-checkbox-label,
.nut-rtl .nut-checkbox-reverse .nut-checkbox-label {
  margin-left: var(--nutui-checkbox-label-margin-left, var(--nutui-spacing-2, 4px));
  margin-right: 0;
}
[dir=rtl] .nut-checkbox-button-icon,
.nut-rtl .nut-checkbox-button-icon {
  right: auto;
  left: 0;
  border-right: scale-px(10px) solid transparent;
  border-left: scale-px(10px) solid var(--nutui-color-primary, #ff6666);
}
[dir=rtl] .nut-checkbox-button-icon-checked,
.nut-rtl .nut-checkbox-button-icon-checked {
  left: auto;
  right: 50%;
  transform: translate(scale-px(3px), scale-px(-3px));
}
[dir=rtl] .nut-checkbox-button-icon .nut-icon:before,
.nut-rtl .nut-checkbox-button-icon .nut-icon:before {
  margin-left: 0;
  margin-right: scale-px(6px);
}