// YcStatusDialog 组件样式

/* 移除 YcStatusDialog 组件的 footer before 伪元素 */
.yc-status-dialog .el-dialog__footer::before {
  display: none !important;
}

.yc-status-dialog {
  // 使用 dialog 本身的 padding 控制内边距
  padding: 24px !important;
  border-radius: 4px !important;

  .el-dialog__header {
    padding: 0 !important;
    margin: 0 !important;
    &::after {
      background-color: transparent;
      border: none;
    }
  }

  .el-dialog__body {
    padding: 0 !important;
  }

  .el-dialog__footer {
    padding: 16px 0 0 !important;
  }

  /* 关闭按钮图标替换为 CDN 图标 */
  .el-dialog__headerbtn {
    // top: 24px;
    // right: 24px;
    width: 16px;
    height: 16px;

    .el-dialog__close {
      display: none;
    }

    &::before {
      content: '';
      display: block;
      width: 16px;
      height: 16px;
      background-image: url('https://staticcdn.jinbizhihui.com/images/saas-basic-platform/close_tips_icon.svg');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
    }
  }

  .dialog-header {
    display: flex;
    gap: 4px;
    align-items: center;

    .icon-wrapper {
      display: flex;
      flex-shrink: 0;
      align-items: center;
      justify-content: center;
      border-radius: 50%;

      .status-icon {
        width: 20px;
        height: 20px;
      }
    }

    .title-text {
      width: 80%;
      font-size: 16px;
      font-weight: 500;
      line-height: 24px;
      color: #000;
      /* 处理长文字换行 */
      word-break: break-word;
      overflow-wrap: break-word;
    }
  }

  .dialog-content {
    padding-top: 16px;
    min-height: 104px;
    box-sizing: border-box;

    .content-text {
      margin: 0;
      font-size: 14px;
      line-height: 22px;
      color: rgba(0, 0, 0, 0.5);
    }
  }

  .dialog-footer {
    display: flex;
    justify-content: flex-end;
  }
}
