/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-rate {
  display: flex;
  touch-action: pan-x;
}
.nut-rate.disabled .nut-rate-item-icon {
  cursor: not-allowed;
}
.nut-rate.readonly .nut-rate-item-icon {
  cursor: default;
}
.nut-rate-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}
.nut-rate-item-half {
  position: absolute;
  height: 100%;
  width: 50% !important;
  left: 0;
  top: 0;
  overflow: hidden;
}
.nut-rate-item-half .nut-icon {
  flex-shrink: 0;
}
.nut-rate-item-normal {
  margin-left: var(--nutui-rate-item-margin, 14px);
}
.nut-rate-item-normal .nut-icon {
  height: var(--nutui-rate-icon-size, 12px);
  width: var(--nutui-rate-icon-size, 12px);
}
.nut-rate-item-large {
  margin-left: calc(var(--nutui-rate-item-margin, 14px) * 2);
}
.nut-rate-item-large .nut-icon {
  height: calc(var(--nutui-rate-icon-size, 12px) + scale-px(8px));
  width: calc(var(--nutui-rate-icon-size, 12px) + scale-px(8px));
}
.nut-rate-item-small {
  margin-left: calc(var(--nutui-rate-item-margin, 14px) / 2);
}
.nut-rate-item-small .nut-icon {
  height: calc(var(--nutui-rate-icon-size, 12px) - scale-px(4px));
  width: calc(var(--nutui-rate-icon-size, 12px) - scale-px(4px));
}
.nut-rate-item-normal:first-child, .nut-rate-item-large:first-child, .nut-rate-item-small:first-child {
  margin-left: 0;
}
.nut-rate-item-icon {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.nut-rate-item-icon .nut-icon {
  color: var(--nutui-rate-icon-color, var(--nutui-color-primary));
}
.nut-rate-item-icon-disabled .nut-icon {
  color: var(--nutui-rate-icon-inactive-color, var(--nutui-color-text-disabled));
}
.nut-rate-item-icon.nut-rate-item-icon.nut-rate-item-icon-half {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
}
.nut-rate-item-icon.nut-rate-item-icon::before {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}
.nut-rate-score {
  /* #ifdef dynamic*/
  display: flex;
  /* #endif */
  /* #ifndef dynamic*/
  display: inline-flex;
  /* #endif */
  align-items: center;
  color: var(--nutui-rate-font-color, var(--nutui-color-primary-icon, #ff3333));
  font-family: "JDZH-Regular";
}
.nut-rate-score-normal {
  padding-left: var(--nutui-rate-item-margin, 14px);
  font-size: var(--nutui-rate-font-size, 12px);
  line-height: var(--nutui-line-height-s, var(--nutui-font-text-small));
}
.nut-rate-score-large {
  font-size: var(--nutui-rate-font-size-large, calc(var(--nutui-rate-font-size, 12px) + 6px));
  line-height: var(--nutui-line-height-xl, var(--nutui-font-h2));
  padding-left: calc(var(--nutui-rate-item-margin, 14px) * 2);
}
.nut-rate-score-small {
  font-size: var(--nutui-rate-font-size-small, calc(var(--nutui-rate-font-size, 12px) - 2px));
  line-height: var(--nutui-line-height-xxs, var(--nutui-font-text-mini));
  padding-left: calc(var(--nutui-rate-item-margin, 14px) / 2);
}
.nut-rate-score-disabled {
  color: var(--nutui-rate-icon-inactive-color, var(--nutui-color-text-disabled));
}

[dir=rtl] .nut-rate-item,
.nut-rtl .nut-rate-item {
  margin-left: 0;
}
[dir=rtl] .nut-rate-item:first-child,
.nut-rtl .nut-rate-item:first-child {
  margin-right: 0;
}
[dir=rtl] .nut-rate-item-normal,
.nut-rtl .nut-rate-item-normal {
  margin-right: var(--nutui-rate-item-margin, 14px);
}
[dir=rtl] .nut-rate-item-large,
.nut-rtl .nut-rate-item-large {
  margin-right: calc(var(--nutui-rate-item-margin, 14px) * 2);
}
[dir=rtl] .nut-rate-item-small,
.nut-rtl .nut-rate-item-small {
  margin-right: calc(var(--nutui-rate-item-margin, 14px) - scale-px(2px));
}
[dir=rtl] .nut-rate-item:last-child,
.nut-rtl .nut-rate-item:last-child {
  margin-left: 0;
}
[dir=rtl] .nut-rate-item-half,
.nut-rtl .nut-rate-item-half {
  left: auto;
  right: 0;
}
[dir=rtl] .nut-rate-item-icon.nut-rate-item-icon.nut-rate-item-icon-half,
.nut-rtl .nut-rate-item-icon.nut-rate-item-icon.nut-rate-item-icon-half {
  left: auto;
  right: 0;
}
[dir=rtl] .nut-rate-item-icon.nut-rate-item-icon::before,
.nut-rtl .nut-rate-item-icon.nut-rate-item-icon::before {
  left: auto;
  right: auto;
}
[dir=rtl] .nut-rate-score,
.nut-rtl .nut-rate-score {
  padding-left: 0;
}
[dir=rtl] .nut-rate-score-large,
.nut-rtl .nut-rate-score-large {
  padding-right: calc(var(--nutui-rate-item-margin, 14px) * 2);
}
[dir=rtl] .nut-rate-score-normal,
.nut-rtl .nut-rate-score-normal {
  padding-right: var(--nutui-rate-item-margin, 14px);
}
[dir=rtl] .nut-rate-score-small,
.nut-rtl .nut-rate-score-small {
  padding-right: calc(var(--nutui-rate-item-margin, 14px) - scale-px(2px));
}