@use "@tencentcloud/uikit-base-component-react/dist/styles/theme/util" as *;

.Search {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  @include theme() {
    background-color: get(bg-color-operate);
    color: get(text-color-primary);
  }
}

.Search__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  @include theme() {
    border-bottom: 1px solid get(stroke-color-primary);
  }

  h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    @include theme() {
      color: get(text-color-primary);
    }
  }

  .Search__close-button {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    font-size: 20px;
    @include theme() {
      color: get(text-color-secondary);
    }
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s;

    &:hover {
      @include theme() {
        color: get(text-color-primary);
      }
    }
  }
}
