/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-searchbar {
  display: flex;
  align-items: center;
  width: var(--nutui-searchbar-width, 100%);
  padding: var(--nutui-searchbar-padding, 8px 10px);
  background: var(--nutui-searchbar-background, var(--nutui-color-surface-2));
  color: var(--nutui-searchbar-color, var(--nutui-color-title));
  font-size: var(--nutui-searchbar-font-size, var(--nutui-font-text));
  box-sizing: border-box;
  justify-content: center;
}
.nut-searchbar .nut-icon {
  width: var(--nutui-searchbar-icon-size, 20px);
  height: var(--nutui-searchbar-icon-size, 20px);
  font-size: var(--nutui-searchbar-icon-size, 20px);
}
.nut-searchbar-content {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--nutui-searchbar-gap, 16px);
  height: var(--nutui-searchbar-input-height, 36px);
  background: var(--nutui-searchbar-content-background, var(--nutui-color-default-light));
  border-radius: var(--nutui-searchbar-content-border-radius, var(--nutui-radius-xs));
  border: scale-px(1px) solid var(--nutui-color-primary);
}
.nut-searchbar-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--nutui-color-primary);
}
.nut-searchbar-leftin {
  margin-right: var(--nutui-searchbar-inner-gap, 8px);
}
.nut-searchbar-rightin {
  font-size: var(--nutui-font-text-large);
  font-weight: 500;
  color: var(--nutui-color-primary);
}
.nut-searchbar-rightin.nut-searchbar-icon {
  color: var(--nutui-black-5);
}
.nut-searchbar-input-box, .nut-searchbar-input {
  display: flex;
  align-items: center;
  flex: 1;
}
.nut-searchbar-input {
  border: 0;
  outline: 0;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  margin: 0;
  font-size: var(--nutui-searchbar-font-size, var(--nutui-font-text));
  color: var(--nutui-searchbar-input-text-color, var(--nutui-color-text));
  caret-color: var(--nutui-searchbar-input-curror-color, var(--nutui-color-title));
  background: transparent;
  text-align: var(--nutui-searchbar-input-text-align, left);
}
.nut-searchbar-clear.nut-searchbar-icon {
  position: relative;
}
.nut-searchbar-clear.nut-searchbar-icon .nut-icon {
  width: var(--nutui-icon-size-12, 12px);
  height: var(--nutui-icon-size-12, 12px);
  color: var(--nutui-black-5, rgba(0, 0, 0, 0.2));
  margin-right: var(--nutui-searchbar-inner-gap, 8px);
}
.nut-searchbar-clear.nut-searchbar-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 200%;
  left: -20%;
}
.nut-searchbar-values {
  position: absolute;
  display: flex;
  flex-direction: row;
  z-index: 2;
  background-color: var(--nutui-searchbar-content-background, var(--nutui-color-default-light));
  top: scale-px(9px);
  left: scale-px(6px);
  font-size: var(--nutui-font-text-small);
  line-height: scale-px(12px);
}
.nut-searchbar-values .nut-searchbar-value {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: scale-px(4px) scale-px(8px);
  background-color: var(--nutui-gray-2, #f8f8f8);
  border-radius: scale-px(4px);
  margin-right: scale-px(2px);
}
.nut-searchbar-values .nut-icon {
  width: var(--nutui-icon-size-6, 6px);
  height: var(--nutui-icon-size-6, 6px);
  font-size: var(--nutui-icon-size-6, 6px);
  color: var(--nutui-color-text-disabled);
  margin-left: scale-px(4px);
}
.nut-searchbar-left, .nut-searchbar-right {
  /* #ifdef dynamic*/
  display: flex;
  /* #endif */
  /* #ifndef dynamic*/
  display: inline-flex;
  /* #endif */
  align-items: center;
}
.nut-searchbar-left.nut-icon, .nut-searchbar-right.nut-icon {
  width: scale-px(20px);
  height: scale-px(20px);
}
.nut-searchbar-left {
  margin-right: var(--nutui-searchbar-gap, 16px);
}
.nut-searchbar-left > div, .nut-searchbar-left > span, .nut-searchbar-left > i, .nut-searchbar-left > svg,
.nut-searchbar-left .nut-icon {
  margin-right: var(--nutui-searchbar-gap, 16px);
}
.nut-searchbar-left > div:last-child, .nut-searchbar-left > span:last-child, .nut-searchbar-left > i:last-child, .nut-searchbar-left > svg:last-child,
.nut-searchbar-left .nut-icon:last-child {
  margin-right: 0;
}
.nut-searchbar-right {
  margin-left: var(--nutui-searchbar-gap, 16px);
}
.nut-searchbar-right > div, .nut-searchbar-right > span, .nut-searchbar-right > i, .nut-searchbar-right > svg,
.nut-searchbar-right .nut-icon {
  margin-left: var(--nutui-searchbar-gap, 16px);
}
.nut-searchbar-right > div:first-child, .nut-searchbar-right > span:first-child, .nut-searchbar-right > i:first-child, .nut-searchbar-right > svg:first-child,
.nut-searchbar-right .nut-icon:first-child {
  margin-left: 0;
}
.nut-searchbar-left > text, .nut-searchbar-left > view {
  margin-right: var(--nutui-searchbar-gap, 16px);
}
.nut-searchbar-left > text:last-child, .nut-searchbar-left > view:last-child {
  margin-right: 0;
}
.nut-searchbar-right > text, .nut-searchbar-right > view {
  margin-left: var(--nutui-searchbar-gap, 16px);
}
.nut-searchbar-right > text:first-child, .nut-searchbar-right > view:first-child {
  margin-left: 0;
}
.nut-searchbar-round {
  border-radius: var(--nutui-searchbar-content-round-border-radius, 18px);
}
.nut-searchbar-disabled {
  cursor: not-allowed;
}
.nut-searchbar-focus {
  padding: scale-px(5px) var(--nutui-searchbar-gap, 16px);
}
.nut-searchbar-focus .nut-searchbar-content {
  border: scale-px(0.5px) solid var(--nutui-color-primary);
}

[dir=rtl] .nut-searchbar-left,
.nut-rtl .nut-searchbar-left {
  margin-right: 0;
  margin-left: var(--nutui-searchbar-gap, 16px);
}
[dir=rtl] .nut-searchbar-left > div, [dir=rtl] .nut-searchbar-left > span, [dir=rtl] .nut-searchbar-left > svg,
.nut-rtl .nut-searchbar-left > div,
.nut-rtl .nut-searchbar-left > span,
.nut-rtl .nut-searchbar-left > svg {
  margin-right: 0;
  margin-left: var(--nutui-searchbar-gap, 16px);
}
[dir=rtl] .nut-searchbar-left > div.nut-icon, [dir=rtl] .nut-searchbar-left > span.nut-icon, [dir=rtl] .nut-searchbar-left > svg.nut-icon,
.nut-rtl .nut-searchbar-left > div.nut-icon,
.nut-rtl .nut-searchbar-left > span.nut-icon,
.nut-rtl .nut-searchbar-left > svg.nut-icon {
  transform: rotate(180deg);
}
[dir=rtl] .nut-searchbar-left > div:last-child, [dir=rtl] .nut-searchbar-left > span:last-child, [dir=rtl] .nut-searchbar-left > svg:last-child,
.nut-rtl .nut-searchbar-left > div:last-child,
.nut-rtl .nut-searchbar-left > span:last-child,
.nut-rtl .nut-searchbar-left > svg:last-child {
  margin-right: 0;
  margin-left: 0;
}
[dir=rtl] .nut-searchbar-right,
.nut-rtl .nut-searchbar-right {
  margin-left: 0;
  margin-right: var(--nutui-searchbar-gap, 16px);
}
[dir=rtl] .nut-searchbar-right > div, [dir=rtl] .nut-searchbar-right > span, [dir=rtl] .nut-searchbar-right > svg,
.nut-rtl .nut-searchbar-right > div,
.nut-rtl .nut-searchbar-right > span,
.nut-rtl .nut-searchbar-right > svg {
  margin-left: 0;
  margin-right: var(--nutui-searchbar-gap, 16px);
}
[dir=rtl] .nut-searchbar-right > div:first-child, [dir=rtl] .nut-searchbar-right > span:first-child, [dir=rtl] .nut-searchbar-right > svg:first-child,
.nut-rtl .nut-searchbar-right > div:first-child,
.nut-rtl .nut-searchbar-right > span:first-child,
.nut-rtl .nut-searchbar-right > svg:first-child {
  margin-left: 0;
  margin-right: 0;
}
[dir=rtl] .nut-searchbar-left > text, [dir=rtl] .nut-searchbar-left > view,
.nut-rtl .nut-searchbar-left > text,
.nut-rtl .nut-searchbar-left > view {
  margin-right: 0;
  margin-left: var(--nutui-searchbar-gap, 16px);
}
[dir=rtl] .nut-searchbar-left > text:last-child, [dir=rtl] .nut-searchbar-left > view:last-child,
.nut-rtl .nut-searchbar-left > text:last-child,
.nut-rtl .nut-searchbar-left > view:last-child {
  margin-right: 0;
  margin-left: 0;
}
[dir=rtl] .nut-searchbar-right > text, [dir=rtl] .nut-searchbar-right > view,
.nut-rtl .nut-searchbar-right > text,
.nut-rtl .nut-searchbar-right > view {
  margin-left: 0;
  margin-right: var(--nutui-searchbar-gap, 16px);
}
[dir=rtl] .nut-searchbar-right > text:first-child, [dir=rtl] .nut-searchbar-right > view:first-child,
.nut-rtl .nut-searchbar-right > text:first-child,
.nut-rtl .nut-searchbar-right > view:first-child {
  margin-left: 0;
  margin-right: 0;
}
[dir=rtl] .nut-searchbar-input,
.nut-rtl .nut-searchbar-input {
  text-align: var(--nutui-searchbar-input-text-align, right);
}