.pi-payment-container {
  // 让内容背景覆盖整个 Modal body，避免 body padding 边界在小数像素缩放下形成竖向渲染接缝。
  .pisell-lowcode-floating-layer-body {
    padding: 0;
  }

  .pi-payment-eftpos {
    box-sizing: border-box;
    min-height: 366px;
    max-height: 600px;
    padding: 0 24px 24px 24px;
    background: #fff;
  }

  .pi-payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
  }

  .pi-payment-header-title {
    color: var(--gray-900, #101828);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
  }

  .pi-payment-header-back,
  .pi-payment-header-close {
    cursor: pointer;
    font-size: 24px;
  }

  .pi-payment-body {
    min-height: 340px;
  }

  .pi-payment-centered {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .pi-payment-schema-qrcode {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .pi-payment-schema-qrcode-title {
    color: var(--Gray-900, #101828);
    font-size: 16px;
    font-weight: 500;
  }

  .pi-payment-schema-qrcode-countdown {
    color: var(--Gray-600, #475467);
    font-size: 14px;
  }

  .pi-payment-device-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    min-height: 200px;
    margin: 0 0 20px;
    padding-bottom: 20px;
  }

  .pi-payment-device-item {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    border: 1px solid var(--Gray-200, #eaecf0);
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    text-align: left;
    color: var(--Gray-900, #101828);
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
  }

  .pi-payment-device-item:hover {
    background: var(--Gray-50, #f9fafb);
  }

  .pi-payment-device-main {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 4px;
  }

  .pi-payment-device-name {
    color: var(--Gray-900, #101828);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
  }

  .pi-payment-device-meta {
    color: #8c8c8c;
    font-size: 12px;
  }

  .pi-payment-device-total {
    color: var(--Gray-900, #101828);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
  }

  .pi-payment-device-surcharge {
    color: var(--Gray-500, #667085);
    font-size: 14px;
    line-height: 20px;
  }

  .pi-payment-device-chevron {
    flex-shrink: 0;
  }

  .pi-payment-device-error {
    display: flex;
    min-height: 200px;
    flex-direction: column;
    gap: 20px;
  }

  .pi-payment-device-error-title {
    color: var(--Gray-900, #101828);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
  }

  .pi-payment-device-error-text {
    color: var(--Gray-900, #101828);
    font-size: 14px;
    line-height: 20px;
  }

  .pi-payment-amount-page {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    gap: 20px;
  }

  .pi-payment-amount-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0;
    overflow: auto;
  }

  .pi-payment-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .pi-payment-field-label {
    color: var(--Gray-700, #344054);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
  }

  .pi-payment-amount-input {
    width: 100%;
  }

  .pi-payment-amount-hint {
    color: var(--Gray-600, #475467);
    font-size: 14px;
    line-height: 20px;
  }

  .pi-payment-amount-surcharge {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .pi-payment-surcharge-alert {
    border: 1px solid #fdb022;
    border-radius: 12px;
    background: #fffcf5;
    padding: 8px 16px;
  }

  .pi-payment-surcharge-alert .ant-alert-icon,
  .pi-payment-surcharge-alert .ant-alert-message {
    color: #c4320a;
  }

  .pi-payment-surcharge-alert .ant-alert-icon {
    font-size: 28px;
  }

  .pi-payment-surcharge-alert .ant-alert-message {
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
  }

  .pi-payment-amount-cash,
  .pi-payment-amount-summary-text {
    color: var(--Gray-700, #344054);
    font-size: 14px;
    line-height: 20px;
  }

  .pi-payment-amount-cash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
  }

  .pi-payment-amount-cash::after {
    content: attr(data-money);
  }

  .pi-payment-amount-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .pi-payment-amount-summary-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--Gray-900, #101828);
  }

  .pi-payment-process-page {
    min-height: 340px;
  }

  .pi-payment-huifu-scan-page {
    display: flex;
    min-height: 500px;
    flex-direction: column;
  }

  .pi-payment-huifu-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 20px;
  }

  .pi-payment-huifu-device-card,
  .pi-payment-huifu-camera-card {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    text-align: left;
  }

  .pi-payment-huifu-device-card-connected {
    border-color: #6ce9a6;
    background: #ecfdf3;
  }

  .pi-payment-huifu-device-card-disconnected {
    border-color: #fda29b;
    background: #fef3f2;
  }

  .pi-payment-huifu-camera-card {
    cursor: pointer;
  }

  .pi-payment-huifu-device-status {
    position: relative;
    flex-shrink: 0;
  }

  .pi-payment-huifu-device-indicator {
    position: absolute;
    bottom: 2px;
    left: -4px;
    display: flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
  }

  .pi-payment-huifu-device-indicator-connected {
    background: #17b26a;
  }

  .pi-payment-huifu-device-indicator-disconnected {
    background: #f04438;
  }

  .pi-payment-huifu-device-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
  }

  .pi-payment-huifu-device-copy strong {
    color: #101828;
    font-size: 16px;
    line-height: 24px;
  }

  .pi-payment-huifu-device-copy span {
    color: #475467;
    font-size: 14px;
    line-height: 20px;
  }

  .pi-payment-huifu-input-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
  }

  .pi-payment-huifu-input-block small {
    color: #667085;
    font-size: 13px;
    font-weight: 400;
  }

  .pi-payment-huifu-actions {
    display: flex;
    gap: 12px;
    border-top: 1px solid #eaecf0;
    padding-top: 20px;
  }

  .pi-payment-huifu-actions .ant-btn {
    height: 48px;
  }

  .pi-payment-manual-page {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    gap: 16px;
  }

  .pi-payment-manual-title {
    color: var(--text-text_1, #1b1b1b);
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
  }

  .pi-payment-manual-text {
    color: var(--text-text_1, #1b1b1b);
    font-size: 14px;
    line-height: 20px;
    white-space: pre-wrap;
  }

  .pi-payment-manual-card-box {
    margin-bottom: 20px;
    display: flex;
    flex: 1;
    gap: 20px;
    width: 100%;
    overflow: auto;
  }

  .pi-payment-manual-card {
    display: flex;
    flex: 1;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    border: 1px solid var(--surface-surface_3, #c6c6c6);
    border-radius: 20px;
    padding: 20px 10px;
  }

  .pi-payment-manual-card-image {
    width: 160px;
    height: 160px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

  .pi-payment-result-page {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .pi-payment-result-title {
    color: var(--gray-900, #101828);
    font-size: 18px;
    font-weight: 600;
  }

  .pi-payment-result-text {
    color: var(--error-600, #d92d20);
    font-size: 14px;
    line-height: 20px;
    white-space: pre-wrap;
  }

  .pi-payment-result-text-danger {
    color: #cf1322;
  }

  .pi-payment-result-actions {
    display: flex;
    width: 100%;
    gap: 12px;
    margin: 20px 0 0;
    flex-shrink: 0;
  }

  .pi-payment-action-button {
    height: 48px !important;
  }

  .pi-payment-schema {
    display: flex;
    min-height: 340px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
  }

  .pi-payment-schema-title {
    font-size: 16px;
    font-weight: 600;
  }

  .pi-payment-schema-item-title {
    color: var(--gray-900, #101828);
    font-size: 18px;
    font-weight: 600;
  }

  .pi-payment-schema-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    color: #1f1f1f;
  }

  .pi-payment-schema-row-vertical {
    gap: 4px;
    flex-direction: column;
    align-items: stretch;
  }

  .pi-payment-schema-row-steps {
    gap: 4px;
  }

  .pi-payment-schema-row-horizontal {
    gap: 16px;
  }

  .pi-payment-schema-row-horizontal > .ant-btn {
    flex: 1;
  }

  .pi-payment-schema-input {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
  }

  .pi-payment-schema-input-label {
    flex-shrink: 0;
  }

  .pi-payment-schema-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .pi-payment-receipt-preview {
    margin: 0;
    padding: 16px;
    overflow: auto;
    background: #fff;
    font-family: monospace;
    white-space: pre-wrap;
  }

  .pi-payment-status-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 8px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  .pi-payment-status-icon-loading {
    animation: pi-payment-spin 1s linear infinite;
  }

  @keyframes pi-payment-spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

  .pi-payment-schema-text {
    font-size: 14px;
  }

  .pi-payment-schema-text-warning {
    color: #ad6800;
  }

  .pi-payment-schema-text-danger {
    color: #cf1322;
  }

  .pi-payment-schema-text-multiline {
    white-space: pre-wrap;
  }

  .pi-payment-schema-step {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    white-space: pre-wrap;
  }

  .pi-payment-schema-step-text {
    color: #1f1f1f;
  }

  .pi-payment-schema-step-icon {
    color: #1677ff;
    font-size: 18px;
  }

  .pi-payment-schema-step-icon-success {
    color: #1b945c;
  }

  .pi-payment-schema-step-icon-error {
    color: #ff4d4f;
  }
}

.pi-payment-success-review-page {
  .pi-payment-result-text {
    color: var(--gray-700, #344054);
    white-space: pre-wrap;
  }
}

.pi-payment-success-review-confirmation {
  padding-top: 24px;
  white-space: pre-wrap;
}
