// @import "../_utils.scss";
// @import "./icon.scss";
.#{$drawer-prefix-cls} {
  width: auto;
  position: fixed;

  &-inner {
    position: absolute;
  }

  &-left {
    left: $drawer-left;
  }

  &-right {
    right: $drawer-right;
  }

  &-hidden {
    display: none !important;
  }

  &-wrap {
    position: fixed;
    overflow: auto;
    top: 0;
    right: $drawer-right;
    bottom: 0;
    left: $drawer-left;
    z-index: $zindex-drawer;
    -webkit-overflow-scrolling: touch;
    outline: 0;

    &-inner {
      position: absolute;
    }
  }

  &-wrap * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  &-mask {
    // .mask;
    @include mask;

    &-inner {
      position: absolute;
    }
  }

  &-content {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    top: $drawer-content-top;
    bottom: $drawer-content-bottom;
    background-color: $drawer-content-background-color;

    @include theme-background-color($__drawer-content_background-color);
    border: 0;

    @include theme-border($__drawer-content_border);
    background-clip: padding-box;
    box-shadow: $drawer-content-box-shadow;

    @include theme-box-shadow($__drawer_box-shadow);
    @include theme-font-color($__drawer-content_font-color);

    &-no-mask {
      pointer-events: auto;
    }
  }

  &-header {
    // .content-header;
    // @include content-header;
    border-bottom: 1px solid $border-color-split;
    @include theme-border-bottom-color($__common-content-header_border-bottom-color);
    padding: $mixin-content-header-padding;
    line-height: 1;
    

    p,
    &-inner {
      display: inline-block;
      width: 100%;
      color: $mixin-content-header-color;

      @include theme-font-color($__common-content-header-inner_font-color);
      font-weight: bold;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;

      height: 20px;
      line-height: 20px;
      font-size: $font-size-base;
      

      @include structure-font-size($__card-default_font-size, 0);
    }
    @include theme-border-bottom-color($__drawer-header_border-bottom-color);
  }

  &-close {
    z-index: 1;

    // @include content-close(1px, 31px);
    // .content-close(1px, 31px);
    font-size: $font-size-small;
    position: absolute;
    right: 16px;
    top: 12px;
    overflow: hidden;
    cursor: pointer;
  
    .#{$icon-prefix-cls}-ios-close-empty {
      @include close-base(1px, 31px);
    }

    & i.iconfont {
      @include theme-font-color($__common-close_icon-color);
    }

    & i:hover {
      @include theme-font-color( $__common-close_hover_icon-color);
    }
  }

  &-body {
    flex: 1;
    width: 100%;
    padding: $drawer-body-padding;
    font-size: $drawer-body-font-size;
    line-height: 1.5;
    word-wrap: break-word;
    overflow: auto;

    @include scrollbar;
  }

  &-no-mask {
    pointer-events: none;
  }
}
.#{$drawer-prefix-cls}-right,.#{$drawer-prefix-cls}-left {
  height: 100%;
  top: 0;
}
.#{$drawer-prefix-cls}-up,.#{$drawer-prefix-cls}-down {
  width: 100%;
  left: 0;
}
.#{$drawer-prefix-cls}-down {
  bottom: 0;
}
