@import '../style/var';

.van-search {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 8px @padding-sm;  // ks @search-padding -> 8px @padding-sm
  background-color: @search-background-color;

  &__content {
    display: flex;
    flex: 1;
    padding-left: @padding-sm;
    background-color: @search-content-background-color;
    border-radius: @border-radius-md; // @border-radius-sm -> @border-radius-md

    &--round {
      border-radius: @border-radius-max;
    }
  }

  &__label {
    padding: @search-label-padding;
    color: @search-label-color;
    font-size: @search-label-font-size;
    line-height: @search-input-height;
  }

  .van-cell {
    flex: 1;
    padding: 6px @padding-xs 6px 0; // ks 5px @padding-xs 5px 0 -> 6px @padding-xs 6px 0
    background-color: transparent;

    &__left-icon {
      color: @search-left-icon-color;
    }
  }

  &--show-action {
    padding-right: 0;
  }

  input {
    &::-webkit-search-decoration,
    &::-webkit-search-cancel-button,
    &::-webkit-search-results-button,
    &::-webkit-search-results-decoration {
      display: none;
    }
  }

  &__action {
    padding: @search-action-padding;
    color: @search-action-text-color;
    font-size: @search-action-font-size;
    line-height: @search-input-height;
    cursor: pointer;
    user-select: none;

    &:active {
      background-color: @active-color;
    }
  }
}
#kuasheng-h5 {
  .van-search {
    padding: 8px @padding-sm;
    &__content {
        border-radius: @border-radius-md;
    }
    .van-cell {
        padding: 6px @padding-xs 6px 0;
    }
    .van-icon {
      color: #b0b3bf;
    }
  }
}
