.yc-modal-container {
  overflow: hidden;
  position: fixed;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  .yc-modal-mask {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: var(--color-mask-bg);
  }
  .yc-modal-wrapper {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: auto;

    .yc-modal {
      position: absolute;
      border-radius: var(--border-radius-medium);
      background-color: var(--color-bg-3);
      line-height: 1.5715;
      display: flex;
      flex-direction: column;
      // 全屏
      &.yc-modal-fullscreen {
        height: 100%;
        .yc-modal-body {
          flex: 1;
        }
      }
      // 推拽
      &.yc-modal-draggable {
        .yc-modal-header {
          cursor: move;
          user-select: none;
        }
      }
      .yc-modal-footer,
      .yc-modal-body,
      .yc-modal-header,
      .yc-modal-title,
      .yc-modal-close-button {
        flex-shrink: 0;
      }
      .yc-modal-header {
        height: 48px;
        width: 100%;
        padding: 0 20px;
        border-bottom: 1px solid var(--color-neutral-3);
        display: flex;
        align-items: center;
        .yc-modal-title {
          flex: 1;
          span {
            font-size: 16px;
            font-weight: 500;
            color: var(--color-text-1);
          }
          &.title-align-center {
            text-align: center;
          }
        }
        .yc-modal-close-button {
          margin-left: -12px;
        }
      }
      .yc-modal-body {
        padding: 24px 20px;
        color: var(--color-text-1);
        font-size: 14px;
        line-height: 1.5715;
      }
      .yc-modal-footer {
        height: 64px;
        width: 100%;
        padding: 16px 20px;
        border-top: 1px solid var(--color-neutral-3);
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
      }
    }
  }
}

.yc-modal-position-absolute {
  position: absolute;
}

.yc-modal-simple {
  .yc-modal-wrapper {
    .yc-modal {
      width: 400px;
      padding: 24px 32px 32px;
      .yc-modal-header,
      .yc-modal-footer,
      .yc-modal-body {
        height: unset;
        padding: 0;
        border: none;
        &.yc-modal-header {
          margin-bottom: 24px;
        }
        &.yc-modal-footer {
          margin-top: 24px;
          justify-content: center;
        }
      }
    }
  }
}
