/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-switch {
  cursor: pointer;
  position: relative;
  /* #ifdef dynamic*/
  display: flex;
  /* #endif */
  /* #ifndef dynamic*/
  display: inline-flex;
  /* #endif */
  flex-direction: row;
  align-items: center;
  min-width: var(--nutui-switch-width, 40px);
  height: var(--nutui-switch-height, 24px);
  line-height: var(--nutui-switch-line-height, 24px);
  background-color: var(--nutui-switch-active-background-color, var(--nutui-color-primary, #ff6666));
  border-radius: var(--nutui-switch-border-radius, 24px);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
  flex: 0 0 auto;
}
.nut-switch-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: calc(var(--nutui-switch-height, 24px) - var(--nutui-switch-border-width, 2px) * 2);
  width: calc(var(--nutui-switch-height, 24px) - var(--nutui-switch-border-width, 2px) * 2);
  border-radius: var(--nutui-switch-inside-border-radius, var(--nutui-radius-s));
  background: var(--nutui-color-text-dark);
  transition: left 0.3s linear;
  box-shadow: var(--nutui-switch-inside-box-shadow, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));
}
.nut-switch-button-open {
  left: calc(100% - var(--nutui-switch-height, 24px) + var(--nutui-switch-border-width, 2px));
}
.nut-switch-button-open-rtl {
  left: var(--nutui-switch-border-width, 2px);
}
.nut-switch-button-close {
  left: var(--nutui-switch-border-width, 2px);
}
.nut-switch-button-close-rtl {
  left: calc(100% - var(--nutui-switch-height, 24px) + var(--nutui-switch-border-width, 2px));
}
.nut-switch-button .nut-icon {
  width: calc((var(--nutui-switch-height, 24px) - var(--nutui-switch-border-width, 2px) * 2) / 2);
  height: calc((var(--nutui-switch-height, 24px) - var(--nutui-switch-border-width, 2px) * 2) / 2);
  color: var(--nutui-switch-active-disabled-background-color, var(--nutui-color-primary-disabled-special, #ffadbe));
}
.nut-switch-close {
  background-color: var(--nutui-switch-inactive-background-color, var(--nutui-color-text-disabled));
}
.nut-switch-close-line {
  width: calc((var(--nutui-switch-height, 24px) - var(--nutui-switch-border-width, 2px) * 2) / 2);
  height: scale-px(2px);
  background: var(--nutui-switch-inactive-line-background-color, #ffffff);
  border-radius: scale-px(2px);
}
.nut-switch-label {
  /* #ifdef dynamic*/
  display: flex;
  /* #endif */
  /* #ifndef dynamic*/
  display: inline-flex;
  /* #endif */
  align-items: center;
  height: 100%;
  white-space: nowrap;
  color: var(--nutui-switch-label-text-color, var(--nutui-color-text-dark));
  font-size: var(--nutui-switch-label-font-size, var(--nutui-font-text-small));
}
.nut-switch-label .nut-icon {
  color: var(--nutui-switch-label-text-color, var(--nutui-color-text-dark));
}
.nut-switch-label-open {
  margin: 0 calc(var(--nutui-switch-height, 24px) - var(--nutui-switch-border-width, 2px) + scale-px(3px)) 0 scale-px(7px);
}
.nut-switch-label-open-rtl {
  margin: 0 scale-px(7px) 0 calc(var(--nutui-switch-height, 24px) - var(--nutui-switch-border-width, 2px) + scale-px(3px));
}
.nut-switch-label-close {
  margin: 0 scale-px(7px) 0 calc(var(--nutui-switch-height, 24px) - var(--nutui-switch-border-width, 2px) + scale-px(3px));
}
.nut-switch-label-close-rtl {
  margin: 0 calc(var(--nutui-switch-height, 24px) - var(--nutui-switch-border-width, 2px) + scale-px(3px)) 0 scale-px(7px);
}
.nut-switch-label-close-disabled {
  color: var(--nutui-switch-inactive-disabled-label-text-color, var(--nutui-color-text-disabled));
}
.nut-switch-label-close-disabled .nut-icon {
  color: var(--nutui-switch-inactive-disabled-label-text-color, var(--nutui-color-text-disabled));
}
.nut-switch-disabled {
  background-color: var(--nutui-switch-active-disabled-background-color, var(--nutui-color-primary-disabled-special, #ffadbe));
}
.nut-switch-disabled-close {
  background-color: var(--nutui-switch-inactive-disabled-background-color, var(--nutui-color-surface-1));
}