@use "../../libs/css/theme" as *;
@use "../../libs/css/mixin" as *;

@include b(cascader) {
  position: relative;
  width: 100%;
  height: 100%;

  &-input {
    position: relative;
    .input-cover {
      opacity: 0;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 1;
    }
  }

  @include e(header) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: $hy-border-margin-padding-base;
    border-bottom: $hy-border-line;
  }

  @include e(header-title) {
    font-size: $hy-font-size-base;
    font-weight: $hy-font-weight-bold;
    color: $hy-text-color;
  }

  @include e(header-close) {
    width: 60rpx;
    height: 60rpx;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  @include e(content) {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    height: 100%;
  }

  @include e(item) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: $hy-border-margin-padding-lg $hy-border-margin-padding-base;
    font-size: $hy-font-size-base;
    color: $hy-text-color;
    position: relative;

    @include m(active) {
      color: $hy-primary;
      font-weight: $hy-font-weight-bold;
      background: $hy-background--hover;
      border-left: $hy-border-width-lg solid $hy-primary;
    }
  }

  @include e(panel) {
    width: 100%;
    height: 100%;
  }

  @include edeep(loading) {
      position: absolute;
      top: 0;
      right: 0;
      left: 0;
      bottom: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
  }
}