.modalDrawer {
  :global {
    .@{antPrefix}-modal-content {
      padding: 0;
    }

    .@{antPrefix}-modal-header {
      margin-bottom: 0;
      padding: 12px 24px;
      border-bottom: 1px solid #00000026;
    }

    .@{antPrefix}-modal-footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      height: 48px;
      margin-top: 0;
      padding: 0 16px;
      border-top: 1px solid #00000026;
    }

    .@{antPrefix}-drawer-body {
      padding: 0;
    }

    .@{antPrefix}-drawer-wrapper-body {
      height: 100%;
    }

    .@{antPrefix}-drawer-header .@{antPrefix}-drawer-close {
      position: absolute;
      right: 0;
    }

    .@{antPrefix}-drawer-title {
      margin: 0;
      color: rgba(0, 0, 0, 0.85);
      font-weight: 500;
      font-size: 14px;
      line-height: 22px;
    }

    .@{antPrefix}-drawer-header {
      padding: 12px 24px;
    }
  }
}

.modalDrawerContent {
  height: 100%;
  padding: 24px 24px 0;
  overflow: auto;
  &.hasfoot {
    height: calc(100% - 48px);
  }
  &.padding-middle {
    padding: 24px 24px 0;
  }
  &.padding-small {
    padding: 12px 12px 0;
  }
  &.padding-none {
    padding: 0;
  }
}

.modalDrawerBottomBar {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 48px;
  padding: 0 24px;
  border-top: 1px solid #00000026;

  button:not(:first-child) {
    margin-left: 10px;
  }
}
