@import '../index.less';
@btri-drawer: ~'@{ant-prefix}-btri-drawer';

.@{btri-drawer} {
  &-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--title-font);
    position: relative;
  }

  &-extra {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    font-size: 20px;
    color: var(--caption-font);
    cursor: pointer;
  }

  &-closeIcon {
    display: flex;
    align-items: center;
  }

  &-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  &-footer-okBtn {
    margin-left: 12px;
  }

  &--absolute {
    position: absolute !important;
  }

  &-parent {
    position: relative;
    transition: all 0.5s;
    overflow: hidden;
  }
}

.@{btri-drawer}-box {
  .@{ant-prefix}-drawer-footer {
    border-top: 1px solid transparent;
    padding: 16px;
  }

  .@{ant-prefix}-drawer-header {
    border-bottom: 1px solid transparent;
    padding: 16px;
  }

  &.noTitle {
    .@{ant-prefix}-drawer-header {
      padding: 0 16px;
    }

    .@{btri-drawer}-extra {
      top: 22px;
    }
  }
}
