/**
 *
 * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). 
 * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc..  
 * 
 * This source code is licensed under the Apache license.
 * See LICENSE file in the project root for license information.
 *
 */
@drawer-prefix-cls: ~'@{ant-prefix}-drawer';

.@{drawer-prefix-cls}-footer:not(.sp-null) {
  padding: @drawer-footer-padding-horizontal @drawer-footer-padding-vertical;

  .@{ant-prefix}-drawer-footer-default {
    display: flex;
    justify-content: space-between;
    align-items: center;

    button + button {
      margin-left: 8px;
    }

    .@{ant-prefix}-drawer-footer-help {
      white-space: nowrap;
      overflow: hidden;
      margin-right: @Spacing-12;
    }

    .@{ant-prefix}-drawer-footer-buttons {
      flex: none;
    }
  }
}

.@{drawer-prefix-cls}.@{ant-prefix}-drawer-no-body-spacing {
  .@{drawer-prefix-cls}-body {
    padding: 0;
  }
}

.@{drawer-prefix-cls}-header-no-title {
  height: 54px;
  border-bottom: 1px solid @color-line-1;
}

.@{drawer-prefix-cls}-close {
  width: 54px;
  font-size: 20px;
  height: @drawer-header-height;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 24px 0 0;
}

.@{drawer-prefix-cls}-header-tabs {
  .@{drawer-prefix-cls}-header {
    padding-top: 0;
    padding-bottom: 0;

    .@{ant-prefix}-tabs-nav::before {
      border-bottom: none !important;
    }
  }
}

.@{drawer-prefix-cls}-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.@{drawer-prefix-cls}-header-return {
  display: flex;
  &-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 10px;
  }
}
