.yc-drawer-wrapper {
  overflow: hidden;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;

  .yc-drawer-mask {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: var(--color-mask-bg);
  }
  .yc-drawer-container {
    position: absolute;
    height: 100%;
    background-color: var(--color-bg-3);
    display: flex;
    flex-direction: column;
    .yc-drawer-footer,
    .yc-drawer-body,
    .yc-drawer-header,
    .yc-drawer-title,
    .yc-drawer-close-button {
      flex-shrink: 0;
    }
    .yc-drawer-header {
      height: 48px;
      width: 100%;
      padding: 0 16px;
      border-bottom: 1px solid var(--color-neutral-3);
      display: flex;
      align-items: center;
      .yc-drawer-title {
        flex: 1;
        font-size: 16px;
        font-weight: 500;
        color: var(--color-text-1);
      }
      .yc-drawer-close-button {
        margin-left: -12px;
      }
    }
    .yc-drawer-body {
      flex: 1;
      line-height: 1.5715;
      padding: 12px 16px;
      color: var(--color-text-1);
      font-size: 14px;
    }
    .yc-drawer-footer {
      height: 64px;
      width: 100%;
      padding: 0 16px;
      border-top: 1px solid var(--color-neutral-3);
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 12px;
    }
  }
}
.yc-drawer-position-absolute {
  position: absolute;
}
// placement
@drawer-placement: left, right, bottom, top;
each(@drawer-placement, {
  .yc-drawer-placement-@{value} {
    .yc-drawer-container {
      & when (@value = left),(@value = top),(@value = bottom){
        left: 0;
      }
      & when (@value = right){
        right: 0;
      }
      & when(@value = left),(@value = right),(@value = top){
        top: 0;
      }
      & when(@value = bottom){
        bottom: 0;
      }
      & when (@value = left),(@value = right){
         bottom: 0;
      }
      & when (@value = top),(@value = bottom){
        right: 0;
     }
    }
  }
});
