.total-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--p-surface-100);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;

  .total-label {
    font-size: 16px;
    font-weight: 600;
  }

  .total-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--p-primary-color);
  }
}

.payment-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.payment-line {
  display: flex;
  align-items: center;
  gap: 8px;

  .line-method {
    flex: 0 0 140px;
  }

  .line-amount {
    flex: 0 0 140px;
  }

  .line-reference {
    flex: 1;

    input {
      width: 100%;
    }
  }
}

.add-line-btn {
  margin-bottom: 16px;
}

.payment-summary {
  background: var(--p-surface-50);
  border-radius: 8px;
  padding: 12px 16px;

  .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;

    .amount {
      font-weight: 600;
    }

    &.remaining .amount {
      color: var(--p-red-500);
    }

    &.change {
      .amount {
        color: var(--p-green-500);
        font-size: 18px;
        font-weight: 700;
      }
    }
  }
}

.error-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  color: #c62828;
  font-size: 13px;
  white-space: pre-wrap;

  i {
    flex-shrink: 0;
    margin-top: 2px;
  }
}
