@import '../../../styles/var.less';

.message {
  display: flex;
  align-items: center;
  padding: 0px 8px;
  i {
    margin-right: 10px;
    color: var(--color-error-text);
  }
}

.modal {
  position: relative;
  h3 {
    background-color: #fff;
    position: sticky;
    top: 0;
  }
  :global {
    .ant-modal-header {
      padding: 8px 10px;
    }
    .ant-modal-body {
      padding: 0px 10px 10px;
    }
    .ant-modal-content {
      max-height: 80vh;
      display: flex;
      flex-direction: column;
      .ant-modal-header,
      .ant-modal-footer {
        flex-shrink: 0;
      }
      .ant-modal-body {
        flex: 1;
        height: 0;
        overflow-y: auto;
      }
    }
  }
}

.modalTitle {
  display: flex;
  align-items: center;

  i {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-error-text);
    margin-right: 10px;
  }
}

.modalFooter {
  text-align: start;
  cursor: pointer;
  &:hover {
    color: var(--color-primary);
  }
  .copyErrorTips {
    color: var(--color-error-text);
  }
}

.description {
  .f-lines(2);
  word-break: break-all;
  padding: 0px 10px;
}

.notification {
  z-index: 999 !important;
  width: 300px !important;
  font-size: 12px !important;
  padding: 4px !important;
  :global {
    .ant-notification-notice-close {
      top: 8px !important;
      inset-inline-end: 8px !important;
    }
  }
}

.errorDetail {
  white-space: pre;
}
