.pi-payment-container {

  .pi-payment-eftpos {
    min-height: 366px;
    max-height: 600px;
    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 {
    // padding: 20px;
  }

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

  .pi-payment-device-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    min-height: 200px;
    margin: 0 0 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-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 8px;
    background: #fafafa;
    padding: 12px;
  }

  .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-amount-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #595959;
  }

  .pi-payment-amount-summary strong {
    color: #1f1f1f;
  }

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

  .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-actions {
    display: flex;
    gap: 12px;
  }

  .pi-payment-manual-actions-vertical {
    flex-direction: column;
  }

  .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-success-icon {
    margin-left: 6px;
    color: #1b945c;
    font-size: 22px;
    vertical-align: middle;
  }

  .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,
  .pi-payment-schema-empty {
    display: flex;
    min-height: 340px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
  }

  .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-icon-row {
    display: flex;
    justify-content: center;
    margin: 16px 0 8px;
  }

  .pi-payment-schema-copy {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .pi-payment-schema-copy .pi-payment-schema-text:first-child {
    color: var(--gray-900, #101828);
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
  }

  .pi-payment-schema-actions {
    display: flex;
    width: 100%;
    gap: 12px;
    margin-top: auto;
  }

  .pi-payment-schema-actions .ant-btn {
    flex: 1;
    min-width: 0;
    height: 48px;
    font-size: 16px;
  }

  .pi-payment-schema-steps {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

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

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

  .pi-payment-schema-row-processing {
    gap: 30px;
  }

  .pi-payment-schema-row-processing .pi-payment-schema-text {
    color: var(--gray-900, #101828);
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
  }

  .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-icon-success {
    color: #52c41a;
  }

  .pi-payment-schema-icon-warning {
    color: #faad14;
  }

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

  .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: center;
    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;
  }
}
